From 7675e091fc19e72bb35e35e8205110b83d142e43 Mon Sep 17 00:00:00 2001 From: Xander Lamkins Date: Tue, 31 Jan 2023 22:26:33 -0500 Subject: [PATCH 1/3] Added JadeTechModule and PowerCore types for items. --- Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs | 30 ++++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs b/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs index 31a33ad58..77999246f 100644 --- a/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs +++ b/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs @@ -31,14 +31,14 @@ public enum ItemType Consumable, /// - /// Crafting material type. + /// Container type. /// - CraftingMaterial, + Container, /// - /// Container type. + /// Crafting material type. /// - Container, + CraftingMaterial, /// /// Gathering type. @@ -50,11 +50,26 @@ public enum ItemType /// Gizmo, + /// + /// Jade tech module type. + /// + JadeTechModule, + + /// + /// Key type. + /// + Key, + /// /// Mini pet type. /// MiniPet, + /// + /// Power core type. + /// + PowerCore, + /// /// Tool type. /// @@ -83,11 +98,6 @@ public enum ItemType /// /// Weapon type. /// - Weapon, - - /// - /// Key type. - /// - Key + Weapon } } From 624e652d3f787d231770e505904618d7cf1ca258 Mon Sep 17 00:00:00 2001 From: Dade Lamkins Date: Tue, 31 Jan 2023 22:51:31 -0500 Subject: [PATCH 2/3] Added remaining item type classes and cast entries. --- Gw2Sharp/WebApi/V2/Models/Items/Item.cs | 2 ++ Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs | 9 +++++++++ Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs create mode 100644 Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs diff --git a/Gw2Sharp/WebApi/V2/Models/Items/Item.cs b/Gw2Sharp/WebApi/V2/Models/Items/Item.cs index 7679f568a..778d4df82 100644 --- a/Gw2Sharp/WebApi/V2/Models/Items/Item.cs +++ b/Gw2Sharp/WebApi/V2/Models/Items/Item.cs @@ -27,8 +27,10 @@ namespace Gw2Sharp.WebApi.V2.Models [CastableType(ItemType.Container, typeof(ItemContainer))] [CastableType(ItemType.Gathering, typeof(ItemGathering))] [CastableType(ItemType.Gizmo, typeof(ItemGizmo))] + [CastableType(ItemType.JadeTechModule, typeof(ItemJadeTechModule))] [CastableType(ItemType.Key, typeof(ItemKey))] [CastableType(ItemType.MiniPet, typeof(ItemMiniPet))] + [CastableType(ItemType.PowerCore, typeof(ItemPowerCore))] [CastableType(ItemType.Tool, typeof(ItemTool))] [CastableType(ItemType.Trait, typeof(ItemTrait))] [CastableType(ItemType.Trinket, typeof(ItemTrinket))] diff --git a/Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs b/Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs new file mode 100644 index 000000000..11eef7220 --- /dev/null +++ b/Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs @@ -0,0 +1,9 @@ +namespace Gw2Sharp.WebApi.V2.Models +{ + /// + /// Represents a jade tech module item. + /// + public class ItemJadeTechModule : Item + { + } +} diff --git a/Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs b/Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs new file mode 100644 index 000000000..b66976422 --- /dev/null +++ b/Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs @@ -0,0 +1,9 @@ +namespace Gw2Sharp.WebApi.V2.Models +{ + /// + /// Represents a power core item. + /// + public class ItemPowerCore : Item + { + } +} From e9efd5a721ad4082b22fea13ee0604b51aa14000 Mon Sep 17 00:00:00 2001 From: Xander Lamkins Date: Tue, 28 Feb 2023 16:24:50 -0500 Subject: [PATCH 3/3] Reverted order. --- Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs | 40 ++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs b/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs index 77999246f..8952f70ea 100644 --- a/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs +++ b/Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs @@ -31,14 +31,14 @@ public enum ItemType Consumable, /// - /// Container type. + /// Crafting material type. /// - Container, + CraftingMaterial, /// - /// Crafting material type. + /// Container type. /// - CraftingMaterial, + Container, /// /// Gathering type. @@ -50,26 +50,11 @@ public enum ItemType /// Gizmo, - /// - /// Jade tech module type. - /// - JadeTechModule, - - /// - /// Key type. - /// - Key, - /// /// Mini pet type. /// MiniPet, - /// - /// Power core type. - /// - PowerCore, - /// /// Tool type. /// @@ -98,6 +83,21 @@ public enum ItemType /// /// Weapon type. /// - Weapon + Weapon, + + /// + /// Key type. + /// + Key, + + /// + /// Jade tech module type. + /// + JadeTechModule, + + /// + /// Power core type. + /// + PowerCore } }