Unity U3: Add DeckModel.cs (#48)
This commit is contained in:
1 parent
0923b75d79
commit
af8e59ed9a
1 file changed
+21
@@ -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<string> colors;
|
||||
[JsonProperty("cards")] public List<CardModel> 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]";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user