diff --git a/unity-client/Assets/Scripts/Models/DeckModel.cs b/unity-client/Assets/Scripts/Models/DeckModel.cs new file mode 100644 index 0000000..fdcd181 --- /dev/null +++ b/unity-client/Assets/Scripts/Models/DeckModel.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace CommanderAILab.Models +{ + [Serializable] + public class DeckModel + { + [JsonProperty("id")] public string id; + [JsonProperty("name")] public string name; + [JsonProperty("commander")] public string commander; + [JsonProperty("colors")] public List colors; + [JsonProperty("cards")] public List cards; + [JsonProperty("card_count")] public int cardCount; + [JsonProperty("created_at")] public string createdAt; + [JsonProperty("updated_at")] public string updatedAt; + + public override string ToString() => $"{name} ({commander}) [{cardCount} cards]"; + } +}