Fixed issues related to comments.

This commit is contained in:
Yanan Wang 2023-10-28 20:56:21 -05:00
parent 89c62bf496
commit 801fda473f
7 changed files with 9 additions and 7 deletions

View file

@ -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; }
}
}

View file

@ -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;
}
}

View file

@ -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; }
}
}

View file

@ -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.

View file

@ -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;
}
}

View file

@ -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; }
}

View file

@ -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;
}
}