WABA Api Request Model

InStatusClientWebhook Model

    public class MdMessageParameter
    {
            public string type { get; set; }
            public string text { get; set; }
            public MdCurrency currency { get; set; }
            public MdDateTime date_time { get; set; }
            public MdMediaObject image { get; set; }
            public MdMediaObject document { get; set; }
            public MdMediaObject video { get; set; }
            /// <summary>
            /// For Interactive Template Quick Reply type Button - this payload will be sent back in reply message
            /// </summary>
            public string payload { get; set; }

    }
1
2
3
4
5
6
7
8
    public class MdCurrency
    {
        public string fallback_value { get; set; }

        public string code { get; set; }

        public long amount_1000 { get; set; }
    }
   public class MdDateTime
    {
        public string fallback_value { get; set; }

        public long day_of_week { get; set; }

        public long year { get; set; }

        public long month { get; set; }

        public long day_of_month { get; set; }

        public long hour { get; set; }

        public long minute { get; set; }

        public string calendar { get; set; }
    }
   public class MdMediaObject
    {
        public string id { get; set; }
        public string link { get; set; }

        public string caption { get; set; }
        /// <summary>
        /// Only in Case of Document
        /// </summary>
        public string filename { get; set; }
    }
1
2
3
4
5
6
7
8
   public class MdMessageTemplate
    {
        public string name { get; set; }

        public MdTextMessageLanguage language { get; set; }

        public List<MdMessageComponent> components { get; set; }
    }
1
2
3
4
   public class MdTextMessageLanguage
    {
        public string code { get; set; }
    }
   public class MdMessageComponent
    {
        public string type { get; set; }

        public List<MdMessageParameter> parameters { get; set; }
        /// <summary>
        /// For Interactive Template Button Message, possible values quick_reply, reply, single_select
        /// </summary>
        public string sub_type { get; set; }                
        /// <summary>
        /// For Interactive Template Button Message, unique button number - alphanumeric
        /// </summary>
        public string index { get; set; }

    }