SnapDotNet.Apps.Notifications.BadgeContent.BadgeGlyphNotificationContent.GetContent C# (CSharp) Method

GetContent() public method

Retrieves the notification Xml content as a string.
public GetContent ( ) : string
return string
                public string GetContent()
                {
                    if (!Enum.IsDefined(typeof(GlyphValue), m_Glyph))
                    {
                        throw new NotificationContentValidationException("The badge glyph property was left unset.");
                    }

                    string glyphString = m_Glyph.ToString();
                    // lower case the first character of the enum value to match the Xml schema
                    glyphString = String.Format("{0}{1}", Char.ToLowerInvariant(glyphString[0]), glyphString.Substring(1));
                    return String.Format("<badge version='{0}' value='{1}'/>", Util.NOTIFICATION_CONTENT_VERSION, glyphString);
                }