Merge pull request #200 from ywang1110/Add_MultiSelectTemplate

Add MultiSelectTemplate
This commit is contained in:
Haiping 2023-11-07 17:29:17 -06:00 committed by GitHub
commit ce10475377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,17 @@
namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template
{
public class MultiSelectTemplate : TextMessage
{
[JsonPropertyName("template_type")]
public string TemplateType => "multi-select";
public List<OptionElement> Options { get; set; } = new List<OptionElement>();
}
public class OptionElement
{
public string Title { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public string? Payload { get; set; }
}
}