From f709bb1795625f09264e2740fbc0e6fee90c502d Mon Sep 17 00:00:00 2001 From: Yanan Wang <103942@smsassist.com> Date: Fri, 27 Oct 2023 15:38:37 -0500 Subject: [PATCH] Add SenderActionModel --- .../Models/RichContent/SenderActionModel.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/SenderActionModel.cs diff --git a/src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/SenderActionModel.cs b/src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/SenderActionModel.cs new file mode 100644 index 00000000..17830812 --- /dev/null +++ b/src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/SenderActionModel.cs @@ -0,0 +1,15 @@ + +namespace BotSharp.Abstraction.Messaging.Models.RichContent +{ + public class SenderActionModel + { + /* + * Requests to display sender action should only include the sender_action parameter and the recipient object. + * All other Send API properties, such as text and templates, should be sent in a separate request. + */ + public Recipient Recipient { get; set; } = new Recipient(); + + [JsonPropertyName("sender_action")] + public string SenderAction { get; set; } = string.Empty; + } +}