24 lines
679 B
C#
24 lines
679 B
C#
namespace BotSharp.Abstraction.Messaging.Models.RichContent;
|
|
|
|
/// <summary>
|
|
/// https://developers.facebook.com/docs/messenger-platform/send-messages/buttons
|
|
/// </summary>
|
|
public class ElementButton
|
|
{
|
|
public string Type { get; set; } = "web_url";
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public string Url { get; set; }
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public string Payload { get; set; }
|
|
|
|
[JsonPropertyName("is_primary")]
|
|
public bool IsPrimary { get; set; }
|
|
|
|
[JsonPropertyName("is_secondary")]
|
|
public bool IsSecondary { get; set; }
|
|
}
|