예제 #1
0
 public void AddChannel(ApiChannelResponseModel item)
 {
     if (!this.Channels.Any(x => x.Id == item.Id))
     {
         this.Channels.Add(item);
     }
 }
예제 #2
0
        public virtual ApiChannelRequestModel MapResponseToRequest(
            ApiChannelResponseModel response)
        {
            var request = new ApiChannelRequestModel();

            request.SetProperties(
                response.DataVersion,
                response.JSON,
                response.LifecycleId,
                response.Name,
                response.ProjectId,
                response.TenantTags);
            return(request);
        }
예제 #3
0
        public virtual ApiChannelResponseModel MapRequestToResponse(
            string id,
            ApiChannelRequestModel request)
        {
            var response = new ApiChannelResponseModel();

            response.SetProperties(id,
                                   request.DataVersion,
                                   request.JSON,
                                   request.LifecycleId,
                                   request.Name,
                                   request.ProjectId,
                                   request.TenantTags);
            return(response);
        }