예제 #1
0
        private async Task <List <User> > FetchFriendDetailsAsync(IEnumerable <string> ids)
        {
            var url     = SteamUtils.GetFriendListUrl(_secrets.Value.SteamApiKey, ids);
            var jsonObj = await _remoteApiService.GetJsonObjectAsync(url, SteamUtils.ApiName);

            return(jsonObj["response"]["players"]
                   .Children()
                   .Select(token => token.ToObject <User>())
                   .ToList());
        }