public async Task <AccountV1> UpdateAccountAsync(string correlationId, AccountV1 account) { return(await CallCommandAsync <AccountV1>( "update_account", correlationId, new { account = account } )); }
public static AccountV1 GenerateRandomAccountV1() { AccountV1 tmp = new AccountV1 { Name = Guid.NewGuid().ToString("N").Substring(0, 8), Login = Guid.NewGuid().ToString("N").Substring(0, 8), Theme = Guid.NewGuid().ToString("N").Substring(0, 8) }; return(tmp); }
public RiotAPI(string key) { AccountV1 = new AccountV1(key); ChampionMasteryV4 = new ChampionMasteryV4(key); ChampionV3 = new ChampionV3(key); ClashV1 = new ClashV1(key); LeagueExpV4 = new LeagueExpV4(key); LeagueV4 = new LeagueV4(key); LOLStatusV3 = new LOLStatusV3(key); LORRankedV1 = new LORRankedV1(key); MatchV4 = new MatchV4(key); SpectatorV4 = new SpectatorV4(key); SummonerV4 = new SummonerV4(key); TFTLeagueV1 = new TFTLeagueV1(key); TFTMatchV1 = new TFTMatchV1(key); TFTSummonerV1 = new TFTSummonerV1(key); DataDragonChampions = new DataDragonChampions(); }