Skip to content

Commit

Permalink
Fix #118
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldwight committed Dec 29, 2024
1 parent a038db0 commit ff5c746
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System.Collections.Generic;

namespace WhatsappBusiness.CloudApi.Response
{
Expand All @@ -21,5 +22,23 @@ public class WhatsAppBusinessHSMWhatsAppHSMComponentGet

[JsonProperty("type")]
public string Type { get; set; }
}

[JsonProperty("buttons")]
public List<TemplateButton> 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
}
}

0 comments on commit ff5c746

Please sign in to comment.