Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added JadeTechModule and PowerCore types for items. #127

Merged
merged 3 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gw2Sharp/WebApi/V2/Models/Items/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down
9 changes: 9 additions & 0 deletions Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Gw2Sharp.WebApi.V2.Models
{
/// <summary>
/// Represents a jade tech module item.
/// </summary>
public class ItemJadeTechModule : Item
{
}
}
9 changes: 9 additions & 0 deletions Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Gw2Sharp.WebApi.V2.Models
{
/// <summary>
/// Represents a power core item.
/// </summary>
public class ItemPowerCore : Item
{
}
}
12 changes: 11 additions & 1 deletion Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ public enum ItemType
/// <summary>
/// Key type.
/// </summary>
Key
Key,

/// <summary>
/// Jade tech module type.
/// </summary>
JadeTechModule,

/// <summary>
/// Power core type.
/// </summary>
PowerCore
}
}