Skip to content

Commit 73e737f

Browse files
authored
Upgrading the model for a new response (#118)
1 parent fd60bb7 commit 73e737f

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

src/Steam.Models/DOTA2/MatchDetailModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ public class MatchDetailModel
99

1010
public bool RadiantWin { get; set; }
1111

12+
public uint PreGameDuration { get; set; }
13+
1214
public uint Duration { get; set; }
1315

1416
public DateTime StartTime { get; set; }
@@ -71,6 +73,10 @@ public class MatchDetailModel
7173

7274
public uint DireCaptain { get; set; }
7375

76+
public uint RadiantScore { get; set; }
77+
78+
public uint DireScore { get; set; }
79+
7480
public IReadOnlyCollection<MatchPickBanModel> PicksAndBans { get; set; }
7581
}
7682
}

src/Steam.Models/DOTA2/MatchPlayerModel.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ public class MatchPlayerModel
2222

2323
public uint Item5 { get; set; }
2424

25+
public uint Backpack0 { get; set; }
26+
27+
public uint Backpack1 { get; set; }
28+
29+
public uint Backpack2 { get; set; }
30+
31+
public uint ItemNeutral { get; set; }
32+
2533
public uint Kills { get; set; }
2634

2735
public uint Deaths { get; set; }
28-
36+
2937
public uint Assists { get; set; }
3038

3139
public uint LeaverStatus { get; set; }
@@ -44,6 +52,12 @@ public class MatchPlayerModel
4452

4553
public uint HeroDamage { get; set; }
4654

55+
public uint ScaledHeroDamage { get; set; }
56+
57+
public uint ScaledTowerDamage { get; set; }
58+
59+
public uint ScaledHeroHealing { get; set; }
60+
4761
public uint TowerDamage { get; set; }
4862

4963
public uint HeroHealing { get; set; }

src/SteamWebAPI2/Models/DOTA2/MatchDetailResultContainer.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ internal class MatchPlayer
3939
[JsonProperty(PropertyName = "item_5")]
4040
public uint Item5 { get; set; }
4141

42+
[JsonProperty(PropertyName = "backpack_0")]
43+
public uint Backpack0 { get; set; }
44+
45+
[JsonProperty(PropertyName = "backpack_1")]
46+
public uint Backpack1 { get; set; }
47+
48+
[JsonProperty(PropertyName = "backpack_2")]
49+
public uint Backpack2 { get; set; }
50+
51+
[JsonProperty(PropertyName = "item_neutral")]
52+
public uint ItemNeutral { get; set; }
53+
4254
public uint Kills { get; set; }
4355
public uint Deaths { get; set; }
4456
public uint Assists { get; set; }
@@ -71,6 +83,15 @@ internal class MatchPlayer
7183
[JsonProperty(PropertyName = "hero_healing")]
7284
public uint HeroHealing { get; set; }
7385

86+
[JsonProperty(PropertyName = "scaled_hero_damage")]
87+
public uint ScaledHeroDamage { get; set; }
88+
89+
[JsonProperty(PropertyName = "scaled_tower_damage")]
90+
public uint ScaledTowerDamage { get; set; }
91+
92+
[JsonProperty(PropertyName = "scaled_hero_healing")]
93+
public uint ScaledHeroHealing { get; set; }
94+
7495
public uint Level { get; set; }
7596

7697
[JsonProperty(PropertyName = "ability_upgrades")]
@@ -96,6 +117,9 @@ internal class MatchDetailResult
96117
[JsonProperty(PropertyName = "radiant_win")]
97118
public bool RadiantWin { get; set; }
98119

120+
[JsonProperty(PropertyName = "pre_game_duration")]
121+
public uint PreGameDuration { get; set; }
122+
99123
public uint Duration { get; set; }
100124

101125
[JsonProperty(PropertyName = "start_time")]
@@ -174,6 +198,12 @@ internal class MatchDetailResult
174198
[JsonProperty(PropertyName = "dire_captain")]
175199
public uint DireCaptain { get; set; }
176200

201+
[JsonProperty(PropertyName = "radiant_score")]
202+
public uint RadiantScore { get; set; }
203+
204+
[JsonProperty(PropertyName = "dire_score")]
205+
public uint DireScore { get; set; }
206+
177207
[JsonProperty(PropertyName = "picks_bans")]
178208
public IList<MatchPickBan> PicksAndBans { get; set; }
179209
}

0 commit comments

Comments
 (0)