Ejemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the button1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        private void button1_Click(object sender, EventArgs e)
        {
            LeagueAPI API = new LeagueAPI("<Key Here>", RegionType.NorthAmerica);

            PlayerHistoryDto data = API.MatchHistory.GetMatchHistoryById(52551194);
            MatchDetailDto d = API.Match.GetMatchByMatchId(data.matches[0].matchId);
        }
Ejemplo n.º 2
0
        public LeagueEntryDTO GetEntry(SummonerDTO summoner)
        {
            LeagueAPI leagueAPI = new LeagueAPI(Summoner.Reg);
            var       entrys    = leagueAPI.GetEntrys(summoner.Id)
                                  .Where(x => x.QueueType.Equals("RANKED_SOLO_5x5")).First();

            return(entrys);
        }