Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public class GenericElement
{
[Translate]
public string Title { get; set; }

[Translate]
public string Subtitle { get; set; }

[JsonPropertyName("image_url")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using BotSharp.Abstraction.Messaging.Enums;
using Newtonsoft.Json;

namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template;
Expand All @@ -11,6 +10,7 @@ public class MultiSelectTemplateMessage : IRichMessage, ITemplateMessage

[JsonPropertyName("text")]
[JsonProperty("text")]
[Translate]
public string Text { get; set; } = string.Empty;

[JsonPropertyName("template_type")]
Expand All @@ -28,6 +28,7 @@ public class MultiSelectTemplateMessage : IRichMessage, ITemplateMessage

public class OptionElement
{
[Translate]
public string Title { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public string? Payload { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using BotSharp.Abstraction.Messaging.Enums;
using Newtonsoft.Json;

namespace BotSharp.Abstraction.Messaging.Models.RichContent.Template;
Expand All @@ -11,6 +10,7 @@ public class ProductTemplateMessage : IRichMessage, ITemplateMessage

[JsonPropertyName("text")]
[JsonProperty("text")]
[Translate]
public string Text { get; set; } = string.Empty;

[JsonPropertyName("template_type")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using BotSharp.Abstraction.Messaging.Enums;
using Newtonsoft.Json;

namespace BotSharp.Abstraction.Messaging.Models.RichContent;
Expand All @@ -9,6 +8,7 @@ public class TextMessage : IRichMessage
[JsonProperty("rich_type")]
public string RichType => RichTypeEnum.Text;

[Translate]
public string Text { get; set; } = string.Empty;

public TextMessage(string text)
Expand Down