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