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

            request.SetProperties(
                response.AssignedMachineId,
                response.ChainId,
                response.DateCompleted,
                response.DateStarted,
                response.DynamicParameters,
                response.ExternalId,
                response.LinkStatusId,
                response.Name,
                response.Order,
                response.Response,
                response.StaticParameters,
                response.TimeoutInSeconds);
            return(request);
        }
コード例 #3
0
 public void SetLinkIdNavigation(ApiLinkClientResponseModel value)
 {
     this.LinkIdNavigation = value;
 }