diff --git a/WhatsappBusiness.CloudApi/Response/WhatsAppBusinessHSMWhatsAppHSMComponentGet.cs b/WhatsappBusiness.CloudApi/Response/WhatsAppBusinessHSMWhatsAppHSMComponentGet.cs index 72ac7d2..19c4ce1 100644 --- a/WhatsappBusiness.CloudApi/Response/WhatsAppBusinessHSMWhatsAppHSMComponentGet.cs +++ b/WhatsappBusiness.CloudApi/Response/WhatsAppBusinessHSMWhatsAppHSMComponentGet.cs @@ -1,4 +1,5 @@ using Newtonsoft.Json; +using System.Collections.Generic; namespace WhatsappBusiness.CloudApi.Response { @@ -21,5 +22,23 @@ public class WhatsAppBusinessHSMWhatsAppHSMComponentGet [JsonProperty("type")] public string Type { get; set; } - } + + [JsonProperty("buttons")] + public List Buttons { get; set; } + } + + public class TemplateButton + { + [JsonProperty("type")] + public string Type { get; set; } + + [JsonProperty("text")] + public string Text { get; set; } + + [JsonProperty("url")] + public string Url { get; set; } // For URL type buttons + + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } // For PHONE_NUMBER type buttons + } }