예제 #1
0
        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);
        }
예제 #2
0
        private static async Task <PubgMatch> GetMatchFromApiAsync(string matchId, PubgPlatform platform)
        {
            PubgMatchService service = new PubgMatchService();

            return(await service.GetMatchAsync(platform, matchId));
        }