diff --git a/OakArchive/Models/TcgDex/Attack.cs b/OakArchive/Models/TcgDex/Attack.cs new file mode 100644 index 0000000..dfb41c7 --- /dev/null +++ b/OakArchive/Models/TcgDex/Attack.cs @@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class Attack +{ + [JsonPropertyName("cost")] + public List? Cost { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("effect")] + public string? Effect { get; set; } + + [JsonPropertyName("damage")] + public int? Damage { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/Card.cs b/OakArchive/Models/TcgDex/Card.cs new file mode 100644 index 0000000..767170e --- /dev/null +++ b/OakArchive/Models/TcgDex/Card.cs @@ -0,0 +1,64 @@ +using System.Text.Json.Serialization; +using OakArchive.Entities.Set; + +namespace OakArchive.Models.TcgDex; + +public class Card +{ + [JsonPropertyName("category")] + public string? Category { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("illustrator")] + public string? Illustrator { get; set; } + + [JsonPropertyName("image")] + public string? Image { get; set; } + + [JsonPropertyName("localId")] + public int? LocalId { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("rarity")] + public string? Rarity { get; set; } + + [JsonPropertyName("set")] + public Entities.Set.Set? Set { get; set; } + + [JsonPropertyName("variants")] + public Variants? Variants { get; set; } + + [JsonPropertyName("hp")] + public int? Hp { get; set; } + + [JsonPropertyName("types")] + public List? Types { get; set; } + + [JsonPropertyName("evolveFrom")] + public string? EvolveFrom { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("stage")] + public string? Stage { get; set; } + + [JsonPropertyName("attacks")] + public List? Attacks { get; set; } + + [JsonPropertyName("weaknesses")] + public List? Weaknesses { get; set; } + + [JsonPropertyName("retreat")] + public int? Retreat { get; set; } + + [JsonPropertyName("regulationMark")] + public string? RegulationMark { get; set; } + + [JsonPropertyName("legal")] + public Legal? Legal { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/CardCount.cs b/OakArchive/Models/TcgDex/CardCount.cs new file mode 100644 index 0000000..0e676e2 --- /dev/null +++ b/OakArchive/Models/TcgDex/CardCount.cs @@ -0,0 +1,24 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class CardCount +{ + [JsonPropertyName("firstEd")] + public int? FirstEd { get; set; } + + [JsonPropertyName("holo")] + public int? Holo { get; set; } + + [JsonPropertyName("normal")] + public int? Normal { get; set; } + + [JsonPropertyName("official")] + public int? Official { get; set; } + + [JsonPropertyName("reverse")] + public int? Reverse { get; set; } + + [JsonPropertyName("total")] + public int? Total { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/Legal.cs b/OakArchive/Models/TcgDex/Legal.cs new file mode 100644 index 0000000..29d516a --- /dev/null +++ b/OakArchive/Models/TcgDex/Legal.cs @@ -0,0 +1,12 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class Legal +{ + [JsonPropertyName("standard")] + public bool? Standard { get; set; } + + [JsonPropertyName("expanded")] + public bool? Expanded { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/Serie.cs b/OakArchive/Models/TcgDex/Serie.cs new file mode 100644 index 0000000..5fdf969 --- /dev/null +++ b/OakArchive/Models/TcgDex/Serie.cs @@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class Serie +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("logo")] + public string? Logo { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("sets")] + public List? Sets { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/SerieBrief.cs b/OakArchive/Models/TcgDex/SerieBrief.cs new file mode 100644 index 0000000..f14b596 --- /dev/null +++ b/OakArchive/Models/TcgDex/SerieBrief.cs @@ -0,0 +1,15 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class SerieBrief +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("logo")] + public string? Logo { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/Set.cs b/OakArchive/Models/TcgDex/Set.cs new file mode 100644 index 0000000..a38192a --- /dev/null +++ b/OakArchive/Models/TcgDex/Set.cs @@ -0,0 +1,33 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class Set +{ + [JsonPropertyName("cardCount")] + public CardCount CardCount { get; set; } + + [JsonPropertyName("cards")] + public List Cards { get; set; } + + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("legal")] + public Legal Legal { get; set; } + + [JsonPropertyName("logo")] + public string Logo { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("releaseDate")] + public DateTime ReleaseDate { get; set; } + + [JsonPropertyName("serie")] + public Serie Serie { get; set; } + + [JsonPropertyName("symbol")] + public string Symbol { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/SetBrief.cs b/OakArchive/Models/TcgDex/SetBrief.cs new file mode 100644 index 0000000..308643c --- /dev/null +++ b/OakArchive/Models/TcgDex/SetBrief.cs @@ -0,0 +1,21 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class SetBrief +{ + [JsonPropertyName("cardCount")] + public CardCount? CardCount { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("logo")] + public string? Logo { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("symbol")] + public string? Symbol { get; set; } +} \ No newline at end of file diff --git a/OakArchive/Models/TcgDex/Variants.cs b/OakArchive/Models/TcgDex/Variants.cs new file mode 100644 index 0000000..652c46e --- /dev/null +++ b/OakArchive/Models/TcgDex/Variants.cs @@ -0,0 +1,21 @@ +using System.Text.Json.Serialization; + +namespace OakArchive.Models.TcgDex; + +public class Variants +{ + [JsonPropertyName("firstEdition")] + public bool? FirstEdition { get; set; } + + [JsonPropertyName("holo")] + public bool? Holo { get; set; } + + [JsonPropertyName("normal")] + public bool? Normal { get; set; } + + [JsonPropertyName("reverse")] + public bool? Reverse { get; set; } + + [JsonPropertyName("wPromo")] + public bool? WPromo { get; set; } +} \ No newline at end of file