コード例 #1
0
ファイル: ApiResponse.cs プロジェクト: codenesium/samples
 public void AddHandlerPipelineStep(ApiHandlerPipelineStepClientResponseModel item)
 {
     if (!this.HandlerPipelineSteps.Any(x => x.Id == item.Id))
     {
         this.HandlerPipelineSteps.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiHandlerPipelineStepClientRequestModel MapClientResponseToRequest(
            ApiHandlerPipelineStepClientResponseModel response)
        {
            var request = new ApiHandlerPipelineStepClientRequestModel();

            request.SetProperties(
                response.HandlerId,
                response.PipelineStepId);
            return(request);
        }
コード例 #3
0
        public virtual ApiHandlerPipelineStepClientResponseModel MapClientRequestToResponse(
            int id,
            ApiHandlerPipelineStepClientRequestModel request)
        {
            var response = new ApiHandlerPipelineStepClientResponseModel();

            response.SetProperties(id,
                                   request.HandlerId,
                                   request.PipelineStepId);
            return(response);
        }