Esempio n. 1
0
 public void AddProjectTrigger(ApiProjectTriggerResponseModel item)
 {
     if (!this.ProjectTriggers.Any(x => x.Id == item.Id))
     {
         this.ProjectTriggers.Add(item);
     }
 }
Esempio n. 2
0
        public virtual ApiProjectTriggerRequestModel MapResponseToRequest(
            ApiProjectTriggerResponseModel response)
        {
            var request = new ApiProjectTriggerRequestModel();

            request.SetProperties(
                response.IsDisabled,
                response.JSON,
                response.Name,
                response.ProjectId,
                response.TriggerType);
            return(request);
        }
Esempio n. 3
0
        public virtual ApiProjectTriggerResponseModel MapRequestToResponse(
            string id,
            ApiProjectTriggerRequestModel request)
        {
            var response = new ApiProjectTriggerResponseModel();

            response.SetProperties(id,
                                   request.IsDisabled,
                                   request.JSON,
                                   request.Name,
                                   request.ProjectId,
                                   request.TriggerType);
            return(response);
        }