public BasePokemon GetPokemon(string pokemonName)
        {
            System.Uri url = new System.Uri(string.Format("{0}/pokemon/{1}", "https://pokeapi.co/api/v2/", pokemonName));   // This should probably go through a service call -- Will do soon

            var response = _apiRequestHelper.Get(url);

            return(JObject.Parse(response).ToObject <BasePokemon>());
        }
Example #2
0
        public BasePlayer GetPlayer(int playerId)
        {
            System.Uri url = new System.Uri(string.Format("{0}/players/{1}", "https://api.overwatchleague.com", playerId));   // This should probably go through a service call -- Will do soon

            var response = _apiRequestHelper.Get(url);

            return(JObject.Parse(response)["data"]["player"].ToObject <BasePlayer>());
        }