BotSharp/src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/RichContent.cs

23 lines
479 B
C#
Raw Normal View History

2023-12-18 22:38:12 +00:00
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
public class RichContent<T> where T : IRichMessage
{
2023-12-18 22:38:12 +00:00
public Recipient Recipient { get; set; } = new Recipient();
/// <summary>
/// RESPONSE
/// </summary>
[JsonPropertyName("messaging_type")]
public string MessagingType => "RESPONSE";
public T Message { get; set; }
2023-12-19 13:16:43 +00:00
public RichContent()
{
}
public RichContent(T message)
{
Message = message;
}
}