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

            request.SetProperties(
                response.ExternalId,
                response.Name);
            return(request);
        }
コード例 #3
0
        public virtual ApiBucketClientResponseModel MapClientRequestToResponse(
            int id,
            ApiBucketClientRequestModel request)
        {
            var response = new ApiBucketClientResponseModel();

            response.SetProperties(id,
                                   request.ExternalId,
                                   request.Name);
            return(response);
        }
コード例 #4
0
 public void SetBucketIdNavigation(ApiBucketClientResponseModel value)
 {
     this.BucketIdNavigation = value;
 }