コード例 #1
0
        /// <summary>
        /// 删除匹配
        /// </summary>
        /// <param name="req"><see cref="DeleteMatchRequest"/></param>
        /// <returns><see cref="DeleteMatchResponse"/></returns>
        public DeleteMatchResponse DeleteMatchSync(DeleteMatchRequest req)
        {
            JsonResponseModel <DeleteMatchResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "DeleteMatch");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <DeleteMatchResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
コード例 #2
0
 public async Task Delete([FromUri] DeleteMatchRequest request)
 {
     await _mediator.ExecuteAsync(request).ConfigureAwait(false);
 }
コード例 #3
0
 public DeleteMatchCommand(DeleteMatchRequest deleteMatchRequest)
 {
     this.DeleteMatchRequest = deleteMatchRequest;
 }