From da4d5e548a4dd2238433a738585ebffdfd5fa533 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Fri, 3 Nov 2023 10:46:29 -0500 Subject: [PATCH] Change output field name. --- .../BotSharp.Abstraction/Instructs/Models/InstructResult.cs | 1 + .../ViewModels/Conversations/MessageResponseModel.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructResult.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructResult.cs index 9c1c4a99..6790d866 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructResult.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructResult.cs @@ -2,6 +2,7 @@ namespace BotSharp.Abstraction.Instructs.Models; public class InstructResult : ITrackableMessage { + [JsonPropertyName("message_id")] public string MessageId { get; set; } public string Text { get; set; } public object Data { get; set; } diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/MessageResponseModel.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/MessageResponseModel.cs index 120e81a3..c33bb3ae 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/MessageResponseModel.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/MessageResponseModel.cs @@ -18,5 +18,6 @@ public class MessageResponseModel : InstructResult /// Rich message for UI rendering /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + [JsonPropertyName("rich_content")] public object? RichContent { get; set; } }