Esempio n. 1
0
 /// <summary>
 /// Begin a new LeaderboardsEntriesRequest
 /// </summary>
 /// <param name="requestData"></param>
 /// <returns></returns>
 public GameSparksLeaderboardResponse LeaderboardsEntriesRequest(LeaderboardsEntriesRequest requestData)
 {
     return(JsonConvert.DeserializeObject <GameSparksLeaderboardResponse>(Requestor.PostString(Urls.LeaderboardsEntriesRequest, JsonHelper.SerializeData(requestData)).ResponseJson));
 }
Esempio n. 2
0
        /// <summary>
        /// Begin a new asynchronous LeaderboardsEntriesRequest
        /// </summary>
        /// <param name="requestData"></param>
        /// <returns></returns>
        public async Task <GameSparksLeaderboardResponse> LeaderboardsEntriesRequestAsync(LeaderboardsEntriesRequest requestData)
        {
            var res = await Requestor.PostStringAsync(Urls.LeaderboardsEntriesRequest, JsonHelper.SerializeData(requestData));

            return(JsonConvert.DeserializeObject <GameSparksLeaderboardResponse>(res.ResponseJson));
        }