2023-12-18 22:38:12 +00:00
|
|
|
namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template;
|
|
|
|
|
|
|
|
|
|
public class MultiSelectTemplateMessage : IRichMessage, ITemplateMessage
|
2023-11-07 22:22:49 +00:00
|
|
|
{
|
2023-12-18 22:38:12 +00:00
|
|
|
[JsonPropertyName("rich_type")]
|
2024-02-24 21:17:37 +00:00
|
|
|
public string RichType => RichTypeEnum.MultiSelectTemplate;
|
2024-04-18 18:54:43 +00:00
|
|
|
|
2024-03-22 00:46:51 +00:00
|
|
|
[JsonPropertyName("text")]
|
2024-05-08 02:14:01 +00:00
|
|
|
[Translate]
|
2023-12-18 22:38:12 +00:00
|
|
|
public string Text { get; set; } = string.Empty;
|
2023-11-08 22:27:42 +00:00
|
|
|
|
2023-12-18 22:38:12 +00:00
|
|
|
[JsonPropertyName("template_type")]
|
2024-02-24 21:17:37 +00:00
|
|
|
public string TemplateType => TemplateTypeEnum.MultiSelect;
|
2024-03-21 01:14:05 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("options")]
|
2023-12-18 22:38:12 +00:00
|
|
|
public List<OptionElement> Options { get; set; } = new List<OptionElement>();
|
2024-03-21 01:14:05 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("is_horizontal")]
|
|
|
|
|
public bool IsHorizontal { get; set; }
|
2023-12-18 22:38:12 +00:00
|
|
|
}
|
2023-11-07 22:22:49 +00:00
|
|
|
|
2023-12-18 22:38:12 +00:00
|
|
|
public class OptionElement
|
|
|
|
|
{
|
2024-05-08 02:14:01 +00:00
|
|
|
[Translate]
|
2023-12-18 22:38:12 +00:00
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
|
public string Type { get; set; } = string.Empty;
|
|
|
|
|
public string? Payload { get; set; }
|
2023-11-07 22:22:49 +00:00
|
|
|
}
|