public static async Task <Match> GetPubgMatch(string matchID) { var service = new PubgMatchService(); var match = await service.GetMatchAsync(PubgPlatform.Steam, matchID, Config.PubgToken); string serialized = JsonConvert.SerializeObject(match); var m = JsonConvert.DeserializeObject <Match>(serialized); return(m); }
private static async Task <PubgMatch> GetMatchFromApiAsync(string matchId, PubgPlatform platform) { PubgMatchService service = new PubgMatchService(); return(await service.GetMatchAsync(platform, matchId)); }