From 3f1bcb4d129e85b200d1523bec14c4b170d157c7 Mon Sep 17 00:00:00 2001 From: KoalaTrapLord Date: Wed, 18 Mar 2026 02:00:43 -0400 Subject: [PATCH] Unity U3: Add CoachResponse.cs (#48) This class maps to the response of the POST /api/coach/chat endpoint, including properties for reply, deck report, and suggestions. --- .../Assets/Scripts/Models/CoachResponse.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 unity-client/Assets/Scripts/Models/CoachResponse.cs diff --git a/unity-client/Assets/Scripts/Models/CoachResponse.cs b/unity-client/Assets/Scripts/Models/CoachResponse.cs new file mode 100644 index 0000000..0a8fce5 --- /dev/null +++ b/unity-client/Assets/Scripts/Models/CoachResponse.cs @@ -0,0 +1,16 @@ +using System; +using Newtonsoft.Json; + +namespace CommanderAILab.Models +{ + /// Maps to POST /api/coach/chat response. + [Serializable] + public class CoachResponse + { + [JsonProperty("reply")] public string reply; + [JsonProperty("deck_report")] public string deckReport; + [JsonProperty("suggestions")] public string[] suggestions; + + public override string ToString() => reply ?? "(empty coach response)"; + } +}