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