|
1 | | -using System.Collections.Generic; |
| 1 | +using Newtonsoft.Json; |
| 2 | +using SteamWebAPI2.Utilities.JsonConverters; |
| 3 | +using System; |
| 4 | +using System.Collections.Generic; |
2 | 5 |
|
3 | 6 | namespace SteamWebAPI2.Models.DOTA2 |
4 | 7 | { |
| 8 | + internal class MatchHistoryBySequenceNumberMatchPlayerAbilityUpgrade |
| 9 | + { |
| 10 | + [JsonProperty(PropertyName = "ability")] |
| 11 | + public int Ability { get; set; } |
| 12 | + |
| 13 | + [JsonProperty(PropertyName = "time")] |
| 14 | + public int Time { get; set; } |
| 15 | + |
| 16 | + [JsonProperty(PropertyName = "level")] |
| 17 | + public int Level { get; set; } |
| 18 | + } |
| 19 | + |
| 20 | + internal class MatchHistoryBySequenceNumberMatchPlayer |
| 21 | + { |
| 22 | + [JsonProperty(PropertyName = "ability_upgrades")] |
| 23 | + public IList<MatchHistoryBySequenceNumberMatchPlayerAbilityUpgrade> AbilityUpgrades { get; set; } |
| 24 | + |
| 25 | + [JsonProperty(PropertyName = "account_id")] |
| 26 | + public long AccountId { get; set; } |
| 27 | + |
| 28 | + [JsonProperty(PropertyName = "player_slot")] |
| 29 | + public int PlayerSlot { get; set; } |
| 30 | + |
| 31 | + [JsonProperty(PropertyName = "hero_id")] |
| 32 | + public int HeroId { get; set; } |
| 33 | + |
| 34 | + [JsonProperty(PropertyName = "item_0")] |
| 35 | + public int Item0 { get; set; } |
| 36 | + |
| 37 | + [JsonProperty(PropertyName = "item_1")] |
| 38 | + public int Item1 { get; set; } |
| 39 | + |
| 40 | + [JsonProperty(PropertyName = "item_2")] |
| 41 | + public int Item2 { get; set; } |
| 42 | + |
| 43 | + [JsonProperty(PropertyName = "item_3")] |
| 44 | + public int Item3 { get; set; } |
| 45 | + |
| 46 | + [JsonProperty(PropertyName = "item_4")] |
| 47 | + public int Item4 { get; set; } |
| 48 | + |
| 49 | + [JsonProperty(PropertyName = "item_5")] |
| 50 | + public int Item5 { get; set; } |
| 51 | + |
| 52 | + [JsonProperty(PropertyName = "kills")] |
| 53 | + public int Kills { get; set; } |
| 54 | + |
| 55 | + [JsonProperty(PropertyName = "deaths")] |
| 56 | + public int Deaths { get; set; } |
| 57 | + |
| 58 | + [JsonProperty(PropertyName = "assists")] |
| 59 | + public int Assists { get; set; } |
| 60 | + |
| 61 | + [JsonProperty(PropertyName = "leaver_status")] |
| 62 | + public int LeaverStatus { get; set; } |
| 63 | + |
| 64 | + [JsonProperty(PropertyName = "last_hits")] |
| 65 | + public int LastHits { get; set; } |
| 66 | + |
| 67 | + [JsonProperty(PropertyName = "denies")] |
| 68 | + public int Denies { get; set; } |
| 69 | + |
| 70 | + [JsonProperty(PropertyName = "gold_per_min")] |
| 71 | + public int GoldPerMin { get; set; } |
| 72 | + |
| 73 | + [JsonProperty(PropertyName = "xp_per_min")] |
| 74 | + public int XpPerMin { get; set; } |
| 75 | + |
| 76 | + [JsonProperty(PropertyName = "level")] |
| 77 | + public int Level { get; set; } |
| 78 | + |
| 79 | + [JsonProperty(PropertyName = "gold")] |
| 80 | + public int Gold { get; set; } |
| 81 | + |
| 82 | + [JsonProperty(PropertyName = "gold_spent")] |
| 83 | + public int GoldSpent { get; set; } |
| 84 | + |
| 85 | + [JsonProperty(PropertyName = "hero_damage")] |
| 86 | + public int HeroDamage { get; set; } |
| 87 | + |
| 88 | + [JsonProperty(PropertyName = "tower_damage")] |
| 89 | + public int TowerDamage { get; set; } |
| 90 | + |
| 91 | + [JsonProperty(PropertyName = "hero_healing")] |
| 92 | + public int HeroHealing { get; set; } |
| 93 | + } |
| 94 | + |
| 95 | + internal class MatchHistoryBySequenceNumberMatch |
| 96 | + { |
| 97 | + [JsonProperty(PropertyName = "players")] |
| 98 | + public IList<MatchHistoryBySequenceNumberMatchPlayer> Players { get; set; } |
| 99 | + |
| 100 | + [JsonProperty(PropertyName = "radiant_win")] |
| 101 | + public bool RadiantWin { get; set; } |
| 102 | + |
| 103 | + [JsonProperty(PropertyName = "duration")] |
| 104 | + public int Duration { get; set; } |
| 105 | + |
| 106 | + [JsonProperty(PropertyName = "start_time")] |
| 107 | + [JsonConverter(typeof(UnixTimeJsonConverter))] |
| 108 | + public DateTime StartTime { get; set; } |
| 109 | + |
| 110 | + [JsonProperty(PropertyName = "match_id")] |
| 111 | + public long MatchId { get; set; } |
| 112 | + |
| 113 | + [JsonProperty(PropertyName = "match_seq_num")] |
| 114 | + public int MatchSequenceNumber { get; set; } |
| 115 | + |
| 116 | + [JsonProperty(PropertyName = "tower_status_radiant")] |
| 117 | + public int RadiantTowerStatus { get; set; } |
| 118 | + |
| 119 | + [JsonProperty(PropertyName = "tower_status_dire")] |
| 120 | + public int DireTowerStatus { get; set; } |
| 121 | + |
| 122 | + [JsonProperty(PropertyName = "barracks_status_radiant")] |
| 123 | + public int RadiantBarracksStatus { get; set; } |
| 124 | + |
| 125 | + [JsonProperty(PropertyName = "barracks_status_dire")] |
| 126 | + public int DireBarracksStatus { get; set; } |
| 127 | + |
| 128 | + [JsonProperty(PropertyName = "cluster")] |
| 129 | + public int Cluster { get; set; } |
| 130 | + |
| 131 | + [JsonProperty(PropertyName = "first_blood_time")] |
| 132 | + public long FirstBloodTime { get; set; } |
| 133 | + |
| 134 | + [JsonProperty(PropertyName = "lobby_type")] |
| 135 | + public int LobbyType { get; set; } |
| 136 | + |
| 137 | + [JsonProperty(PropertyName = "human_players")] |
| 138 | + public int HumanPlayers { get; set; } |
| 139 | + |
| 140 | + [JsonProperty(PropertyName = "leagueid")] |
| 141 | + public int LeagueId { get; set; } |
| 142 | + |
| 143 | + [JsonProperty(PropertyName = "positive_votes")] |
| 144 | + public int PositiveVotes { get; set; } |
| 145 | + |
| 146 | + [JsonProperty(PropertyName = "negative_votes")] |
| 147 | + public int NegativeVotes { get; set; } |
| 148 | + |
| 149 | + [JsonProperty(PropertyName = "game_mode")] |
| 150 | + public int GameMode { get; set; } |
| 151 | + |
| 152 | + [JsonProperty(PropertyName = "flags")] |
| 153 | + public int Flags { get; set; } |
| 154 | + |
| 155 | + [JsonProperty(PropertyName = "engine")] |
| 156 | + public int Engine { get; set; } |
| 157 | + |
| 158 | + [JsonProperty(PropertyName = "radiant_score")] |
| 159 | + public int RadiantScore { get; set; } |
| 160 | + |
| 161 | + [JsonProperty(PropertyName = "dire_score")] |
| 162 | + public int DireScore { get; set; } |
| 163 | + } |
| 164 | + |
5 | 165 | internal class MatchHistoryBySequenceNumberResult |
6 | 166 | { |
7 | 167 | public int Status { get; set; } |
8 | | - public IList<MatchHistoryMatch> Matches { get; set; } |
| 168 | + public IList<MatchHistoryBySequenceNumberMatch> Matches { get; set; } |
9 | 169 | } |
10 | 170 |
|
11 | 171 | internal class MatchHistoryBySequenceNumberResultContainer |
|
0 commit comments