/// <summary> /// Initializes a new instance of the <see cref="DiagramsRm" /> class. /// </summary> /// <param name="revision">Index revision of the diagram.</param> /// <param name="parentId">Reference at the first revision of the diagram.</param> /// <param name="status">This enumerative indicates the state of the diagram [0=Deleted, 1=Online, 2=Edit, 3=WaitForApprove, 4=Offline, 5=Revisioned, 6=Instance].</param> /// <param name="info">info.</param> /// <param name="xmlData">XML description of the diagram.</param> /// <param name="runtimeProcessId">Reference at the process identifier.</param> /// <param name="supervisorList">Supervisor list (required).</param> /// <param name="id">Diagram identifier.</param> /// <param name="priority">Diagram priority.</param> /// <param name="name">Diagram name (required).</param> /// <param name="descriptions">Traslation list of the diagram descriptions.</param> /// <param name="details">Traslation list of the diagram details.</param> /// <param name="processDeleteOption">processDeleteOption (required).</param> /// <param name="outcomes">The outcomes list associated at the diagram.</param> /// <param name="diagramGroupId">The diagram group identifier.</param> /// <param name="allowMultipleProcess">Defines if another diagram can be started.</param> /// <param name="documents">List of the documents associated at the diagram.</param> /// <param name="calendarInfo">calendarInfo.</param> public DiagramsRm(int?revision = default(int?), Guid?parentId = default(Guid?), int?status = default(int?), RecordInfoRm info = default(RecordInfoRm), string xmlData = default(string), Guid?runtimeProcessId = default(Guid?), List <ArxivarUserInfoRm> supervisorList = default(List <ArxivarUserInfoRm>), Guid?id = default(Guid?), int?priority = default(int?), string name = default(string), List <MultiLanguageValueRm> descriptions = default(List <MultiLanguageValueRm>), List <MultiLanguageValueRm> details = default(List <MultiLanguageValueRm>), ProcessDeleteOptionsRm processDeleteOption = default(ProcessDeleteOptionsRm), List <Guid?> outcomes = default(List <Guid?>), Guid?diagramGroupId = default(Guid?), bool?allowMultipleProcess = default(bool?), List <ProcessDocumentParameterRm> documents = default(List <ProcessDocumentParameterRm>), CalendarInfoRm calendarInfo = default(CalendarInfoRm)) { // to ensure "supervisorList" is required (not null) if (supervisorList == null) { throw new InvalidDataException("supervisorList is a required property for DiagramsRm and cannot be null"); } else { this.SupervisorList = supervisorList; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for DiagramsRm and cannot be null"); } else { this.Name = name; } // to ensure "processDeleteOption" is required (not null) if (processDeleteOption == null) { throw new InvalidDataException("processDeleteOption is a required property for DiagramsRm and cannot be null"); } else { this.ProcessDeleteOption = processDeleteOption; } this.Revision = revision; this.ParentId = parentId; this.Status = status; this.Info = info; this.XmlData = xmlData; this.RuntimeProcessId = runtimeProcessId; this.Id = id; this.Priority = priority; this.Descriptions = descriptions; this.Details = details; this.Outcomes = outcomes; this.DiagramGroupId = diagramGroupId; this.AllowMultipleProcess = allowMultipleProcess; this.Documents = documents; this.CalendarInfo = calendarInfo; }
/// <summary> /// Initializes a new instance of the <see cref="DiagramInfoRm" /> class. /// </summary> /// <param name="id">Diagram identifier.</param> /// <param name="parentId">Reference at the first revision of the diagram.</param> /// <param name="revision">Index revision of the diagram.</param> /// <param name="priority">Priority of the diagram.</param> /// <param name="name">Diagram name.</param> /// <param name="diagramGroupId">Group identifier.</param> /// <param name="status">This enumerative indicates the state of the diagram [0=Deleted, 1=Online, 2=Edit, 3=WaitForApprove, 4=Offline, 5=Revisioned, 6=Instance].</param> /// <param name="creationDateUtc">The creation date of the diagram.</param> /// <param name="calendarInfo">calendarInfo.</param> public DiagramInfoRm(Guid?id = default(Guid?), Guid?parentId = default(Guid?), int?revision = default(int?), int?priority = default(int?), string name = default(string), Guid?diagramGroupId = default(Guid?), int?status = default(int?), DateTime?creationDateUtc = default(DateTime?), CalendarInfoRm calendarInfo = default(CalendarInfoRm)) { this.Id = id; this.ParentId = parentId; this.Revision = revision; this.Priority = priority; this.Name = name; this.DiagramGroupId = diagramGroupId; this.Status = status; this.CreationDateUtc = creationDateUtc; this.CalendarInfo = calendarInfo; }
/// <summary> /// Initializes a new instance of the <see cref="DiagramCreateRm" /> class. /// </summary> /// <param name="id">Diagram identifier.</param> /// <param name="priority">Diagram priority.</param> /// <param name="name">Diagram name (required).</param> /// <param name="descriptions">Traslation list of the diagram descriptions.</param> /// <param name="details">Traslation list of the diagram details.</param> /// <param name="processDeleteOption">processDeleteOption (required).</param> /// <param name="outcomes">The outcomes list associated at the diagram.</param> /// <param name="diagramGroupId">The diagram group identifier.</param> /// <param name="allowMultipleProcess">Defines if another diagram can be started.</param> /// <param name="documents">List of the documents associated at the diagram.</param> /// <param name="calendarInfo">calendarInfo.</param> public DiagramCreateRm(Guid?id = default(Guid?), int?priority = default(int?), string name = default(string), List <MultiLanguageValueRm> descriptions = default(List <MultiLanguageValueRm>), List <MultiLanguageValueRm> details = default(List <MultiLanguageValueRm>), ProcessDeleteOptionsRm processDeleteOption = default(ProcessDeleteOptionsRm), List <Guid?> outcomes = default(List <Guid?>), Guid?diagramGroupId = default(Guid?), bool?allowMultipleProcess = default(bool?), List <ProcessDocumentParameterRm> documents = default(List <ProcessDocumentParameterRm>), CalendarInfoRm calendarInfo = default(CalendarInfoRm)) { // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for DiagramCreateRm and cannot be null"); } else { this.Name = name; } // to ensure "processDeleteOption" is required (not null) if (processDeleteOption == null) { throw new InvalidDataException("processDeleteOption is a required property for DiagramCreateRm and cannot be null"); } else { this.ProcessDeleteOption = processDeleteOption; } this.Id = id; this.Priority = priority; this.Descriptions = descriptions; this.Details = details; this.Outcomes = outcomes; this.DiagramGroupId = diagramGroupId; this.AllowMultipleProcess = allowMultipleProcess; this.Documents = documents; this.CalendarInfo = calendarInfo; }