From b9369af52fa04092be5d3d9680058e4deec4b21e Mon Sep 17 00:00:00 2001 From: KoalaTrapLord Date: Wed, 18 Mar 2026 02:02:20 -0400 Subject: [PATCH] Unity U3: Add CollectionResponse.cs (#48) --- .../Scripts/Models/CollectionResponse.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 unity-client/Assets/Scripts/Models/CollectionResponse.cs diff --git a/unity-client/Assets/Scripts/Models/CollectionResponse.cs b/unity-client/Assets/Scripts/Models/CollectionResponse.cs new file mode 100644 index 0000000..c3c720f --- /dev/null +++ b/unity-client/Assets/Scripts/Models/CollectionResponse.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace CommanderAILab.Models +{ + /// Paginated collection list from GET /api/collection. + [Serializable] + public class CollectionResponse + { + [JsonProperty("cards")] public List cards; + [JsonProperty("total")] public int total; + [JsonProperty("page")] public int page; + [JsonProperty("per_page")] public int perPage; + + public override string ToString() => $"Collection: {total} cards (page {page})"; + } +}