private RiotApi(string apiKey, int rateLimitPer10s, int rateLimitPer10m) { requester = RateLimitedRequester.Instance; RateLimitedRequester.ApiKey = apiKey; RateLimitedRequester.RateLimitPer10S = rateLimitPer10s; RateLimitedRequester.RateLimitPer10M = rateLimitPer10m; }
//summoner base not default constructor internal SummonerBase(string id, string name, RateLimitedRequester requester, Region region) { this.requester = requester; Region = region; this.Name = name; this.Id = long.Parse(id); }
private RiotApi(string apiKey, bool isProdApi) { requester = RateLimitedRequester.Instance; RateLimitedRequester.RootDomain = "euw.api.pvp.net"; RateLimitedRequester.ApiKey = apiKey; RateLimitedRequester.IsProdApi = isProdApi; }
private RiotApi(string apiKey, bool isProdApi) { requester = RateLimitedRequester.Instance; RateLimitedRequester.RootDomain = "prod.api.pvp.net"; RateLimitedRequester.ApiKey = apiKey; RateLimitedRequester.IsProdApi = isProdApi; }
internal SummonerBase(string id, string name, RateLimitedRequester requester, Region region) { Console.WriteLine("summoner base not default constructor"); this.requester = requester; Region = region; this.Name = name; this.Id = long.Parse(id); }
internal SummonerBase() { requester = RateLimitedRequester.Instance; }
private TournamentRiotApi(string apiKey, int rateLimitPer10s, int rateLimitPer10m) { Requesters.TournamentApiRequester = new RateLimitedRequester(apiKey, rateLimitPer10s, rateLimitPer10m); requester = Requesters.TournamentApiRequester; }
private RiotApi(string apiKey, int rateLimitPer10s, int rateLimitPer10m) { Requesters.RiotApiRequester = new RateLimitedRequester(apiKey, rateLimitPer10s, rateLimitPer10m); requester = Requesters.RiotApiRequester; }