示例#1
0
        public static async Task <bool> PlayerInfo(string CardID)
        {
            Dota2DataProvider dpv = new Dota2DataProvider();

            _EmployeeData = await dpv.GetPlayerInfo(CardID);

            //TODO: ADD || CardID == "" to first If-statement so that the value cannot be empty.

            if (EmployeeData == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
示例#2
0
        public static async Task <bool> MatchInfo(string CardID)
        {
            Dota2DataProvider dpv = new Dota2DataProvider();

            _Matchinfon = await dpv.GetMatchInfo(CardID);

            var newduration = Matchinfon.duration / 60;

            Matchinfon.duration = newduration;

            //TODO: ADD || CardID == "" to first If-statement so that the value cannot be empty.

            if (Matchinfon == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }