Esempio n. 1
0
        public async Task <Tuple <bool, int> > WatchMatch(Match match)
        {
            if (lc == null)
            {
                lc = await LeagueClient.Connect();
            }
            RedChamp  = "";
            BlueChamp = "";
            IsInGame  = true;
            var summoner = await lc.GetSummonersModule().GetCurrentSummoner();

            var dodged = await CheckForDodge();

            bool result;

            if (dodged.Item1)
            {
                result = dodged.Item2;
            }
            else
            {
                result = await MatchParser(match, summoner);
            }

            var elo = await SaveMatchResult(result, match, summoner);

            return(new Tuple <bool, int>(result, elo));
        }