예제 #1
0
        /// <summary>
        /// Begin a new asynchronous XBOXLiveConnectRequest
        /// </summary>
        /// <param name="requestData"></param>
        /// <returns>GameSparksAuthentication</returns>
        public async Task <GameSparksAuthenticationResponse> XBOXLiveConnectRequestAsync(XBOXLiveConnectRequest requestData)
        {
            var res = await Requestor.PostStringAsync(Urls.XBOXLiveConnectRequest, SerializeRequest(requestData));

            return(DeserializeResponse(res.ResponseJson));
        }
예제 #2
0
 /// <summary>
 /// Begin a new XBOXLiveConnectRequest
 /// </summary>
 /// <param name="requestData"></param>
 /// <returns></returns>
 public GameSparksAuthenticationResponse XBOXLiveConnectRequest(XBOXLiveConnectRequest requestData)
 {
     return(DeserializeResponse(Requestor.PostString(Urls.XBOXLiveConnectRequest, SerializeRequest(requestData)).ResponseJson));
 }