// GET: League
        public List <LeagueEntryDTO> Get(string summonerId)
        {
            League_V4 league_V4 = new League_V4();
            var       league    = league_V4.GetLeagueById(summonerId);

            return(league);
        }
Beispiel #2
0
        private PositionDTO GetPosition(SummonerDTO summoner)
        {
            League_V4 league = new League_V4(Constant.Region);

            var position = league.GetPositions(summoner.Id).Where(p => p.QueueType.Equals("RANKED_SOLO_5x5")).FirstOrDefault();

            return(position ?? new PositionDTO());
        }
 public List <LeagueEntryDTO> GetSummonerRankStuffs(string region, string encryptedSummonerId)
 {
     if (!string.IsNullOrEmpty(encryptedSummonerId))
     {
         var league_V4 = new League_V4(region);
         return(league_V4.GetRankByEncryptedSummonerId(encryptedSummonerId));
     }
     return(null);
 }