28 lines
850 B
C#
28 lines
850 B
C#
namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template;
|
|
|
|
public class MultiSelectTemplateMessage : IRichMessage, ITemplateMessage
|
|
{
|
|
[JsonPropertyName("rich_type")]
|
|
public string RichType => RichTypeEnum.MultiSelectTemplate;
|
|
|
|
[JsonPropertyName("text")]
|
|
[Translate]
|
|
public string Text { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("template_type")]
|
|
public string TemplateType => TemplateTypeEnum.MultiSelect;
|
|
|
|
[JsonPropertyName("options")]
|
|
public List<OptionElement> Options { get; set; } = new List<OptionElement>();
|
|
|
|
[JsonPropertyName("is_horizontal")]
|
|
public bool IsHorizontal { get; set; }
|
|
}
|
|
|
|
public class OptionElement
|
|
{
|
|
[Translate]
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Type { get; set; } = string.Empty;
|
|
public string? Payload { get; set; }
|
|
} |