WhatsAppApi.Parser.FMessage.GetMessage_WA_Type_StrValue C# (CSharp) Method

GetMessage_WA_Type_StrValue() public static method

public static GetMessage_WA_Type_StrValue ( Type type ) : string
type System.Type
return string
        public static string GetMessage_WA_Type_StrValue(Type type)
        {
            if (type != Type.Undefined)
            {
                if (type == Type.System)
                {
                    return "system";
                }
                if (type == Type.Image)
                {
                    return "image";
                }
                if (type == Type.Audio)
                {
                    return "audio";
                }
                if (type == Type.Video)
                {
                    return "video";
                }
                if (type == Type.Contact)
                {
                    return "vcard";
                }
                if (type == Type.Location)
                {
                    return "location";
                }
            }
            return null;
        }