2024-04-18 18:54:43 +00:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using JsonIgnoreAttribute = System.Text.Json.Serialization.JsonIgnoreAttribute;
|
|
|
|
|
|
2023-12-18 22:38:12 +00:00
|
|
|
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
|
2023-10-27 19:05:18 +00:00
|
|
|
|
2023-12-18 22:38:12 +00:00
|
|
|
public class QuickReplyElement
|
2023-10-27 19:05:18 +00:00
|
|
|
{
|
2023-12-18 22:38:12 +00:00
|
|
|
[JsonPropertyName("content_type")]
|
|
|
|
|
public string ContentType { get; set; } = "text";
|
2023-11-24 23:26:33 +00:00
|
|
|
|
2023-12-18 22:38:12 +00:00
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
|
public string? Payload { get; set; }
|
2023-11-24 23:26:33 +00:00
|
|
|
|
2023-12-18 22:38:12 +00:00
|
|
|
[JsonPropertyName("image_url")]
|
2024-04-18 18:54:43 +00:00
|
|
|
[JsonProperty("image_url")]
|
2023-12-18 22:38:12 +00:00
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
|
public string? ImageUrl { get; set; }
|
2023-10-27 19:05:18 +00:00
|
|
|
}
|