Skip to content

Commit

Permalink
Merge pull request #112 from Murphybro2/master
Browse files Browse the repository at this point in the history
Add more properties to component and parameter classes that are valid in the Whatsapp API.
  • Loading branch information
gabrieldwight authored Dec 13, 2024
2 parents 3ef35eb + ecc66ec commit eb28b45
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public class TextMessageComponent

[JsonProperty("parameters")]
public List<TextMessageParameter> Parameters { get; set; }

[JsonProperty("sub_type", NullValueHandling = NullValueHandling.Ignore)]
public string SubType { get; set; }

[JsonProperty("index", NullValueHandling = NullValueHandling.Ignore)]
public string Index { get; set; }
}

public class TextMessageParameter
Expand All @@ -64,6 +70,9 @@ public class TextMessageParameter

[JsonProperty("date_time", NullValueHandling = NullValueHandling.Ignore)]
public TemplateDateTime DateTime { get; set; }

[JsonProperty("payload", NullValueHandling = NullValueHandling.Ignore)]
public string Payload { get; set; }
}

public class TemplateCurrency
Expand Down

0 comments on commit eb28b45

Please sign in to comment.