Skip to content

Commit

Permalink
Merge pull request #85 from Archomeda/feature/update-character-schema…
Browse files Browse the repository at this point in the history
…-for-equipment-pvp

Update to the latest character schema for equipment_pvp changes
  • Loading branch information
Archomeda authored Apr 8, 2021
2 parents e06a5f9 + 4895b0d commit 2c74da9
Show file tree
Hide file tree
Showing 15 changed files with 1,102 additions and 26 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Gw2Sharp History

## 1.1.0 (8 April 2021)
This release applies the schema changes of 2021-04-06, which has moved the PvP equipment details to the proper equipment tabs information.

### Endpoints
- Move `EquipmentPvp` from `Gw2Sharp.WebApi.V2.Models.Character` to `Gw2Sharp.WebApi.V2.Models.CharacterEquipmentTabSlot` ([#85](https://github.com/Archomeda/Gw2Sharp/issues/85)).
- This deprecates `EquipmentPvp` from `Gw2Sharp.WebApi.V2.Models.Character` and will finally be removed from Gw2Sharp starting from version 2.0
- This makes `EquipmentPvp` also available under the `/v2/characters/:id/equipmenttabs` sub-endpoint, which can be reached from [`Gw2Client.WebApi.V2.Characters[id].EquipmentTabs`](https://archomeda.github.io/Gw2Sharp/master/api/Gw2Sharp.WebApi.V2.Clients.CharactersIdEquipmentTabsClient.html)

---

## 1.0.0 (1 January 2021)
*Gw2Sharp can now be considered feature complete.*

Expand Down
4 changes: 4 additions & 0 deletions Gw2Sharp.Tests/Gw2Sharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
<None Remove="TestFiles\Backstory\BackstoryQuestions.single.json" />
<None Remove="TestFiles\Build\Build.json" />
<None Remove="TestFiles\Characters\Characters.bulk.json" />
<None Remove="TestFiles\Characters\Characters.EquipmentTabs.json" />
<None Remove="TestFiles\Characters\Characters.EquipmentTabs.Null.json" />
<None Remove="TestFiles\Characters\Characters.ids.json" />
<None Remove="TestFiles\Characters\Characters.single.json" />
<None Remove="TestFiles\Characters\CharactersIdBackstory.json" />
Expand Down Expand Up @@ -362,6 +364,8 @@
<EmbeddedResource Include="TestFiles\Backstory\BackstoryQuestions.ids.json" />
<EmbeddedResource Include="TestFiles\Backstory\BackstoryQuestions.single.json" />
<EmbeddedResource Include="TestFiles\Build\Build.json" />
<EmbeddedResource Include="TestFiles\Characters\Characters.EquipmentTabs.json" />
<EmbeddedResource Include="TestFiles\Characters\Characters.EquipmentTabs.Null.json" />
<EmbeddedResource Include="TestFiles\Characters\Characters.bulk.json" />
<EmbeddedResource Include="TestFiles\Characters\Characters.ids.json" />
<EmbeddedResource Include="TestFiles\Characters\Characters.single.json" />
Expand Down
339 changes: 339 additions & 0 deletions Gw2Sharp.Tests/TestFiles/Characters/Characters.EquipmentTabs.Null.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,339 @@
{
"name": "Bob",
"race": "Human",
"gender": "Male",
"flags": [

],
"profession": "Warrior",
"level": 80,
"guild": "F00FF00F-F00F-F00F-F00F-F00FF00FF00F",
"age": 7441000,
"last_modified": "2019-05-22T22:51:00Z",
"created": "2014-01-31T18:00:00Z",
"deaths": 4100,
"crafting": [
{
"discipline": "Armorsmith",
"rating": 500,
"active": true
},
{
"discipline": "Weaponsmith",
"rating": 500,
"active": true
}
],
"title": 225,
"backstory": [
"1-2",
"3-4",
"5-6",
"7-8",
"9-10"
],
"wvw_abilities": [
{
"id": 1,
"rank": 4
},
{
"id": 2,
"rank": 5
}
],
"recipes": [
1,
2,
3,
4
],
"training": [
{
"id": 72,
"spent": 22,
"done": true
},
{
"id": 76,
"spent": 24,
"done": true
},
{
"id": 50,
"spent": 15,
"done": true
},
{
"id": 64,
"spent": 15,
"done": true
},
{
"id": 117,
"spent": 22,
"done": true
},
{
"id": 27,
"spent": 60,
"done": true
},
{
"id": 87,
"spent": 60,
"done": true
},
{
"id": 109,
"spent": 10,
"done": false
},
{
"id": 55,
"spent": 60,
"done": true
}
],
"bags": [
{
"id": 8932,
"size": 20,
"inventory": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
},
{
"id": 48715,
"size": 20,
"inventory": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
{
"id": 19620,
"count": 1,
"binding": "Character",
"bound_to": "Bob"
},
null,
null,
null,
null,
null,
null,
null
]
},
{
"id": 48715,
"size": 20,
"inventory": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
},
{
"id": 48715,
"size": 20,
"inventory": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
},
{
"id": 9594,
"size": 20,
"inventory": [
{
"id": 85016,
"count": 250
},
null,
{
"id": 85016,
"count": 93
},
null,
{
"id": 84731,
"count": 98
},
null,
null,
null,
null,
null,
null,
{
"id": 73653,
"count": 6,
"binding": "Account"
},
null,
{
"id": 24836,
"count": 6
},
null,
null,
null,
null,
{
"id": 78963,
"count": 1,
"skin": 5871,
"upgrades": [
24615
],
"binding": "Account",
"stats": {
"id": 161,
"attributes": {
"Power": 125,
"Precision": 90,
"CritDamage": 90
}
}
},
{
"id": 46759,
"count": 1,
"skin": 5871,
"upgrades": [
24618
],
"binding": "Account"
}
]
},
{
"id": 87225,
"size": 32,
"inventory": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
{
"id": 87695,
"count": 1,
"binding": "Character",
"bound_to": "Bob"
},
{
"id": 88023,
"count": 1,
"binding": "Account"
},
{
"id": 87630,
"count": 72,
"binding": "Account"
},
{
"id": 86793,
"count": 1,
"binding": "Account"
},
{
"id": 87517,
"count": 8,
"binding": "Account"
},
{
"id": 79626,
"count": 1,
"binding": "Character",
"bound_to": "Bob"
}
]
}
]
}
Loading

0 comments on commit 2c74da9

Please sign in to comment.