Skip to content

Commit fb8be67

Browse files
author
babelshift
committed
Added wrappers for GetLiveLeagueGames method.
1 parent bd03195 commit fb8be67

16 files changed

Lines changed: 312 additions & 0 deletions
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace SteamWebAPI2.Models.DOTA2
9+
{
10+
public class LiveLeagueGame
11+
{
12+
public IList<LiveLeagueGamePlayerInfo> Players { get; set; }
13+
[JsonProperty(PropertyName = "radiant_team")]
14+
public LiveLeagueGameTeamRadiantInfo RadiantTeam { get; set; }
15+
[JsonProperty(PropertyName = "dire_team")]
16+
public LiveLeagueGameTeamDireInfo DireTeam { get; set; }
17+
[JsonProperty(PropertyName = "lobby_id")]
18+
public long LobbyId { get; set; }
19+
[JsonProperty(PropertyName = "match_id")]
20+
public int MatchId { get; set; }
21+
public int Spectators { get; set; }
22+
[JsonProperty(PropertyName = "series_id")]
23+
public int SeriesId { get; set; }
24+
[JsonProperty(PropertyName = "game_number")]
25+
public int GameNumber { get; set; }
26+
[JsonProperty(PropertyName = "league_id")]
27+
public int LeagueId { get; set; }
28+
[JsonProperty(PropertyName = "stream_delay_s")]
29+
public double StreamDelaySeconds { get; set; }
30+
[JsonProperty(PropertyName = "radiant_series_wins")]
31+
public int RadiantSeriesWins { get; set; }
32+
[JsonProperty(PropertyName = "dire_series_wins")]
33+
public int DireSeriesWins { get; set; }
34+
[JsonProperty(PropertyName = "series_type")]
35+
public int SeriesType { get; set; }
36+
[JsonProperty(PropertyName = "league_series_id")]
37+
public int LeagueSeriesId { get; set; }
38+
[JsonProperty(PropertyName = "league_game_id")]
39+
public int LeagueGameId { get; set; }
40+
[JsonProperty(PropertyName = "stage_name")]
41+
public string StageName { get; set; }
42+
[JsonProperty(PropertyName = "league_tier")]
43+
public int LeagueTier { get; set; }
44+
public LiveLeagueGameScoreboard Scoreboard { get; set; }
45+
}
46+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace SteamWebAPI2.Models.DOTA2
9+
{
10+
public class LiveLeagueGameAbility
11+
{
12+
[JsonProperty(PropertyName = "ability_id")]
13+
public int AbilityId { get; set; }
14+
[JsonProperty(PropertyName = "ability_level")]
15+
public int AbilityLevel { get; set; }
16+
}
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace SteamWebAPI2.Models.DOTA2
8+
{
9+
public class LiveLeagueGameBan
10+
{
11+
public int HeroId { get; set; }
12+
}
13+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace SteamWebAPI2.Models.DOTA2
9+
{
10+
public class LiveLeagueGamePick
11+
{
12+
[JsonProperty(PropertyName = "hero_id")]
13+
public int HeroId { get; set; }
14+
}
15+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace SteamWebAPI2.Models.DOTA2
9+
{
10+
public class LiveLeagueGamePlayerDetail
11+
{
12+
[JsonProperty(PropertyName = "player_slot")]
13+
public int PlayerSlot { get; set; }
14+
[JsonProperty(PropertyName = "account_id")]
15+
public int AccountId { get; set; }
16+
[JsonProperty(PropertyName = "hero_id")]
17+
public int HeroId { get; set; }
18+
public int Kills { get; set; }
19+
public int Deaths { get; set; }
20+
public int Assists { get; set; }
21+
[JsonProperty(PropertyName = "last_hits")]
22+
public int LastHits { get; set; }
23+
public int Denies { get; set; }
24+
public int Gold { get; set; }
25+
public int Level { get; set; }
26+
[JsonProperty(PropertyName = "gold_per_min")]
27+
public int GoldPerMinute { get; set; }
28+
[JsonProperty(PropertyName = "xp_per_min")]
29+
public int ExperiencePerMinute { get; set; }
30+
[JsonProperty(PropertyName = "ultimate_state")]
31+
public int UltimateState { get; set; }
32+
[JsonProperty(PropertyName = "ultimate_cooldown")]
33+
public int UltimateCooldown { get; set; }
34+
public int Item0 { get; set; }
35+
public int Item1 { get; set; }
36+
public int Item2 { get; set; }
37+
public int Item3 { get; set; }
38+
public int Item4 { get; set; }
39+
public int Item5 { get; set; }
40+
[JsonProperty(PropertyName = "respawn_timer")]
41+
public int RespawnTimer { get; set; }
42+
[JsonProperty(PropertyName = "position_x")]
43+
public int PositionX { get; set; }
44+
[JsonProperty(PropertyName = "position_y")]
45+
public int PositionY { get; set; }
46+
[JsonProperty(PropertyName = "net_worth")]
47+
public int NetWorth { get; set; }
48+
}
49+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace SteamWebAPI2.Models.DOTA2
8+
{
9+
public class LiveLeagueGamePlayerInfo
10+
{
11+
public int AccountId { get; set; }
12+
public string Name { get; set; }
13+
public int HeroId { get; set; }
14+
public int Team { get; set; }
15+
}
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace SteamWebAPI2.Models.DOTA2
8+
{
9+
public class LiveLeagueGameResult
10+
{
11+
public IList<LiveLeagueGame> Games { get; set; }
12+
public int Status { get; set; }
13+
}
14+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace SteamWebAPI2.Models.DOTA2
8+
{
9+
public class LiveLeagueGameResultContainer
10+
{
11+
public LiveLeagueGameResult Result { get; set; }
12+
}
13+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace SteamWebAPI2.Models.DOTA2
9+
{
10+
public class LiveLeagueGameScoreboard
11+
{
12+
public double Duration { get; set; }
13+
[JsonProperty(PropertyName = "roshan_respawn_timer")]
14+
public int RoshanRespawnTimer { get; set; }
15+
public LiveLeagueGameTeamRadiantDetail Radiant { get; set; }
16+
public LiveLeagueGameTeamDireDetail Dire { get; set; }
17+
}
18+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace SteamWebAPI2.Models.DOTA2
9+
{
10+
public class LiveLeagueGameTeamDireDetail
11+
{
12+
public int Score { get; set; }
13+
[JsonProperty(PropertyName = "tower_state")]
14+
public int TowerState { get; set; }
15+
[JsonProperty(PropertyName = "barracks_state")]
16+
public int BarracksState { get; set; }
17+
public IList<LiveLeagueGamePick> Picks { get; set; }
18+
public IList<LiveLeagueGameBan> Bans { get; set; }
19+
public IList<LiveLeagueGamePlayerDetail> Players { get; set; }
20+
public IList<LiveLeagueGameAbility> Abilities { get; set; }
21+
}
22+
}

0 commit comments

Comments
 (0)