/// <summary> /// Begin a new asynchronous JoinChallengeRequest /// </summary> /// <param name="requestData"></param> /// <returns></returns> public async Task <JoinChallengeResponse> JoinChallengeRequestAsync(JoinChallengeRequest requestData) { var res = await Requestor.PostStringAsync(Urls.JoinChallengeRequest, JsonHelper.SerializeData(requestData)); return(JsonConvert.DeserializeObject <JoinChallengeResponse>(res.ResponseJson)); }
/// <summary> /// Begin a new JoinChallengeRequest /// </summary> /// <param name="requestData"></param> /// <returns></returns> public JoinChallengeResponse JoinChallengeRequest(JoinChallengeRequest requestData) { return(JsonConvert.DeserializeObject <JoinChallengeResponse>(Requestor.PostString(Urls.JoinChallengeRequest, JsonHelper.SerializeData(requestData)).ResponseJson)); }