Merge branch 'master' of https://github.com/hchen2020/BotSharp
This commit is contained in:
commit
347b90c60c
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ 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")]
|
||||
public string TemplateType => TemplateTypeEnum.Generic;
|
||||
public virtual string TemplateType { get; set; } = TemplateTypeEnum.Generic;
|
||||
|
||||
[JsonPropertyName("elements")]
|
||||
public List<T> Elements { get; set; } = new List<T>();
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue