Skip to content

Commit bee4b45

Browse files
authored
Merge pull request #442 from Qtoss-AI/master
Template [Translate]
2 parents 2a5d0ac + 0703488 commit bee4b45

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/Template/GenericTemplateMessage.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public class GenericElement
3939
{
4040
[Translate]
4141
public string Title { get; set; }
42+
43+
[Translate]
4244
public string Subtitle { get; set; }
4345

4446
[JsonPropertyName("image_url")]

src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/Template/MultiSelectTemplateMessage.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using BotSharp.Abstraction.Messaging.Enums;
21
using Newtonsoft.Json;
32

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

1211
[JsonPropertyName("text")]
1312
[JsonProperty("text")]
13+
[Translate]
1414
public string Text { get; set; } = string.Empty;
1515

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

2929
public class OptionElement
3030
{
31+
[Translate]
3132
public string Title { get; set; } = string.Empty;
3233
public string Type { get; set; } = string.Empty;
3334
public string? Payload { get; set; }

src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/Template/ProductTemplateMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using BotSharp.Abstraction.Messaging.Enums;
21
using Newtonsoft.Json;
32

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

1211
[JsonPropertyName("text")]
1312
[JsonProperty("text")]
13+
[Translate]
1414
public string Text { get; set; } = string.Empty;
1515

1616
[JsonPropertyName("template_type")]

src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/TextMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using BotSharp.Abstraction.Messaging.Enums;
21
using Newtonsoft.Json;
32

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

11+
[Translate]
1212
public string Text { get; set; } = string.Empty;
1313

1414
public TextMessage(string text)

0 commit comments

Comments
 (0)