public CurrentGameInfo GetCurrentGameInfo(String host, regions.Platform_ID region, int summonerId) { try { String requestUrl = host + Endpoints.CURRENT_GAME + region + "/" + summonerId + "?" + Endpoints.API_KEY; var requestResult = request.MakeRequest(requestUrl); CurrentGameInfo returnInfo = JsonConvert.DeserializeObject <CurrentGameInfo>(requestResult.Result); return(returnInfo); } catch (Exception e) { return(null); } }
public CurrentGameInfo GetCurrentGameInfo(String host, regions.Platform_ID platform_ID, int summonerId) { return(currentGame.GetCurrentGameInfo(host, platform_ID, summonerId)); }