-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added base template message creation object
- Loading branch information
1 parent
40af827
commit 63d51fc
Showing
4 changed files
with
102 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
WhatsappBusiness.CloudApi/Messages/Requests/BaseCreateTemplateMessageRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace WhatsappBusiness.CloudApi.Messages.Requests | ||
{ | ||
public class BaseCreateTemplateMessageRequest | ||
{ | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("category")] | ||
public string Category { get; set; } | ||
|
||
[JsonProperty("allow_category_change", NullValueHandling = NullValueHandling.Ignore)] | ||
public bool? AllowCategoryChange { get; set; } | ||
|
||
[JsonProperty("language")] | ||
public string Language { get; set; } | ||
|
||
[JsonProperty("library_template_name", NullValueHandling = NullValueHandling.Ignore)] | ||
public string? LibraryTemplateName { get; set; } | ||
|
||
[JsonProperty("LIBRARY_TEMPLATE_BUTTON_INPUTS", NullValueHandling = NullValueHandling.Ignore)] | ||
public List<object>? LibraryTemplateButtonInputs { get; set; } | ||
|
||
[JsonProperty("components")] | ||
public List<object> Components { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters