Fixed issues related to comments.
This commit is contained in:
parent
89c62bf496
commit
801fda473f
|
|
@ -9,6 +9,7 @@ namespace BotSharp.Abstraction.Messaging.Models.RichContent
|
|||
public string? Payload { get; set; }
|
||||
[JsonPropertyName("image_url")]
|
||||
public string? ImageUrl { get; set; }
|
||||
[JsonPropertyName("postback_url")]
|
||||
public string? PostBackUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ namespace BotSharp.Abstraction.Messaging.Models.RichContent
|
|||
{
|
||||
public class Recipient
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string Id { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ namespace BotSharp.Abstraction.Messaging.Models.RichContent
|
|||
{
|
||||
public class RichContent<T>
|
||||
{
|
||||
public Recipient? Recipient { get; set; }
|
||||
public Recipient Recipient { get; set; } = new Recipient();
|
||||
/// <summary>
|
||||
/// RESPONSE
|
||||
/// </summary>
|
||||
[JsonPropertyName("messaging_type")]
|
||||
public string? MessageingType { get; set; }
|
||||
public string? MessagingType { get; set; }
|
||||
public T Message { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
namespace BotSharp.Abstraction.Messaging.Models.RichContent
|
||||
{
|
||||
public class SenderActionModel
|
||||
public class SenderActionMessage
|
||||
{
|
||||
/*
|
||||
* Requests to display sender action should only include the sender_action parameter and the recipient object.
|
||||
|
|
@ -10,8 +10,8 @@ namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template
|
|||
|
||||
public class ButtonElement
|
||||
{
|
||||
public string? Type { get; set; }
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public string? Url { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public string Title { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template
|
|||
{
|
||||
public class CommonTemplate<T>
|
||||
{
|
||||
[JsonPropertyName("template_type")]
|
||||
public string TemplateType { get; set; } = string.Empty;
|
||||
public T Elements { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ namespace BotSharp.Abstraction.Messaging.Models.RichContent
|
|||
{
|
||||
public class TextMessage
|
||||
{
|
||||
public string? Text { get; set; }
|
||||
public string Text { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue