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})"; + } +}