[JsonPropertyName("text")]

This commit is contained in:
Haiping Chen 2024-03-21 19:46:51 -05:00
parent 66069abdc7
commit c55153db67
4 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ public class CouponTemplateMessage : IRichMessage, ITemplateMessage
{
[JsonPropertyName("rich_type")]
public string RichType => RichTypeEnum.CouponTemplate;
[JsonIgnore]
[JsonPropertyName("text")]
public string Text { get; set; }
public string Title { get; set; }
public string Subtitle { get; set; }

View file

@ -7,7 +7,7 @@ public class GenericTemplateMessage<T> : IRichMessage, ITemplateMessage
[JsonPropertyName("rich_type")]
public string RichType => RichTypeEnum.GenericTemplate;
[JsonIgnore]
[JsonPropertyName("text")]
public string Text { get; set; } = string.Empty;
[JsonPropertyName("template_type")]

View file

@ -6,7 +6,7 @@ public class MultiSelectTemplateMessage : IRichMessage, ITemplateMessage
{
[JsonPropertyName("rich_type")]
public string RichType => RichTypeEnum.MultiSelectTemplate;
[JsonPropertyName("text")]
public string Text { get; set; } = string.Empty;
[JsonPropertyName("template_type")]

View file

@ -7,7 +7,7 @@ public class ProductTemplateMessage : IRichMessage, ITemplateMessage
[JsonPropertyName("rich_type")]
public string RichType => RichTypeEnum.GenericTemplate;
[JsonIgnore]
[JsonPropertyName("text")]
public string Text { get; set; } = string.Empty;
[JsonPropertyName("template_type")]