Unity U3: Add CollectionResponse.cs (#48)
This commit is contained in:
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})";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user