Skip to content

Commit

Permalink
Upgrading the model for a new response (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy-ksm authored Jul 28, 2021
1 parent fd60bb7 commit 73e737f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Steam.Models/DOTA2/MatchDetailModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class MatchDetailModel

public bool RadiantWin { get; set; }

public uint PreGameDuration { get; set; }

public uint Duration { get; set; }

public DateTime StartTime { get; set; }
Expand Down Expand Up @@ -71,6 +73,10 @@ public class MatchDetailModel

public uint DireCaptain { get; set; }

public uint RadiantScore { get; set; }

public uint DireScore { get; set; }

public IReadOnlyCollection<MatchPickBanModel> PicksAndBans { get; set; }
}
}
16 changes: 15 additions & 1 deletion src/Steam.Models/DOTA2/MatchPlayerModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ public class MatchPlayerModel

public uint Item5 { get; set; }

public uint Backpack0 { get; set; }

public uint Backpack1 { get; set; }

public uint Backpack2 { get; set; }

public uint ItemNeutral { get; set; }

public uint Kills { get; set; }

public uint Deaths { get; set; }

public uint Assists { get; set; }

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

public uint HeroDamage { get; set; }

public uint ScaledHeroDamage { get; set; }

public uint ScaledTowerDamage { get; set; }

public uint ScaledHeroHealing { get; set; }

public uint TowerDamage { get; set; }

public uint HeroHealing { get; set; }
Expand Down
30 changes: 30 additions & 0 deletions src/SteamWebAPI2/Models/DOTA2/MatchDetailResultContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ internal class MatchPlayer
[JsonProperty(PropertyName = "item_5")]
public uint Item5 { get; set; }

[JsonProperty(PropertyName = "backpack_0")]
public uint Backpack0 { get; set; }

[JsonProperty(PropertyName = "backpack_1")]
public uint Backpack1 { get; set; }

[JsonProperty(PropertyName = "backpack_2")]
public uint Backpack2 { get; set; }

[JsonProperty(PropertyName = "item_neutral")]
public uint ItemNeutral { get; set; }

public uint Kills { get; set; }
public uint Deaths { get; set; }
public uint Assists { get; set; }
Expand Down Expand Up @@ -71,6 +83,15 @@ internal class MatchPlayer
[JsonProperty(PropertyName = "hero_healing")]
public uint HeroHealing { get; set; }

[JsonProperty(PropertyName = "scaled_hero_damage")]
public uint ScaledHeroDamage { get; set; }

[JsonProperty(PropertyName = "scaled_tower_damage")]
public uint ScaledTowerDamage { get; set; }

[JsonProperty(PropertyName = "scaled_hero_healing")]
public uint ScaledHeroHealing { get; set; }

public uint Level { get; set; }

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

[JsonProperty(PropertyName = "pre_game_duration")]
public uint PreGameDuration { get; set; }

public uint Duration { get; set; }

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

[JsonProperty(PropertyName = "radiant_score")]
public uint RadiantScore { get; set; }

[JsonProperty(PropertyName = "dire_score")]
public uint DireScore { get; set; }

[JsonProperty(PropertyName = "picks_bans")]
public IList<MatchPickBan> PicksAndBans { get; set; }
}
Expand Down

0 comments on commit 73e737f

Please sign in to comment.