Unity U3: Add CollectionResponse.cs (#48)

This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-18 02:02:20 -04:00
1 parent 6dd1de894c
commit b9369af52f
1 file changed
+18
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace CommanderAILab.Models
{
/// <summary>Paginated collection list from GET /api/collection.</summary>
[Serializable]
public class CollectionResponse
{
[JsonProperty("cards")] public List<CardModel> 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})";
}
}