Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineObject30" /> class.
 /// </summary>
 /// <param name="name">name.</param>
 /// <param name="documentType">documentType.</param>
 /// <param name="fileSize">fileSize.</param>
 /// <param name="folder">folder.</param>
 /// <param name="status">status.</param>
 /// <param name="statusData">statusData.</param>
 /// <param name="assignee">assignee.</param>
 /// <param name="assignDate">assignDate.</param>
 /// <param name="assigneeData">assigneeData.</param>
 /// <param name="description">description.</param>
 /// <param name="title">title.</param>
 /// <param name="notes">notes.</param>
 public InlineObject30(string name = default(string), string documentType = default(string), int fileSize = default(int), string folder = default(string), int?status = default(int?), ApiV1DocumentDocumentsIdStatusData statusData = default(ApiV1DocumentDocumentsIdStatusData), int?assignee = default(int?), DateTime?assignDate = default(DateTime?), ApiV1DocumentDocumentsIdAssigneeData assigneeData = default(ApiV1DocumentDocumentsIdAssigneeData), string description = default(string), string title = default(string), List <Object> notes = default(List <Object>))
 {
     this.Name         = name;
     this.DocumentType = documentType;
     this.Folder       = folder;
     this.Status       = status;
     this.Assignee     = assignee;
     this.AssignDate   = assignDate;
     this.Description  = description;
     this.Title        = title;
     this.Name         = name;
     this.DocumentType = documentType;
     this.FileSize     = fileSize;
     this.Folder       = folder;
     this.Status       = status;
     this.StatusData   = statusData;
     this.Assignee     = assignee;
     this.AssignDate   = assignDate;
     this.AssigneeData = assigneeData;
     this.Description  = description;
     this.Title        = title;
     this.Notes        = notes;
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineObject95" /> class.
        /// </summary>
        /// <param name="title">title (required).</param>
        /// <param name="code">Field codes must be lowercase, should start with a Latin letter, and contain  only Latin letters, digits, and underscores. (required).</param>
        /// <param name="searchFields">searchFields.</param>
        /// <param name="editorType">editorType.</param>
        /// <param name="createdBy">createdBy (required).</param>
        /// <param name="modifiedBy">modifiedBy (required).</param>
        /// <param name="metadata">metadata.</param>
        /// <param name="fieldsNumber">fieldsNumber (required).</param>
        public InlineObject95(string title = default(string), string code = default(string), List <string> searchFields = default(List <string>), EditorTypeEnum?editorType = default(EditorTypeEnum?), ApiV1DocumentDocumentsIdAssigneeData createdBy = default(ApiV1DocumentDocumentsIdAssigneeData), ApiV1DocumentDocumentsIdAssigneeData modifiedBy = default(ApiV1DocumentDocumentsIdAssigneeData), Object metadata = default(Object), int fieldsNumber = default(int))
        {
            // to ensure "title" is required (not null)
            if (title == null)
            {
                throw new InvalidDataException("title is a required property for InlineObject95 and cannot be null");
            }
            else
            {
                this.Title = title;
            }

            // to ensure "code" is required (not null)
            if (code == null)
            {
                throw new InvalidDataException("code is a required property for InlineObject95 and cannot be null");
            }
            else
            {
                this.Code = code;
            }

            this.EditorType = editorType;
            // to ensure "createdBy" is required (not null)
            if (createdBy == null)
            {
                throw new InvalidDataException("createdBy is a required property for InlineObject95 and cannot be null");
            }
            else
            {
                this.CreatedBy = createdBy;
            }

            // to ensure "modifiedBy" is required (not null)
            if (modifiedBy == null)
            {
                throw new InvalidDataException("modifiedBy is a required property for InlineObject95 and cannot be null");
            }
            else
            {
                this.ModifiedBy = modifiedBy;
            }

            this.Metadata = metadata;
            // to ensure "fieldsNumber" is required (not null)
            if (fieldsNumber == null)
            {
                throw new InvalidDataException("fieldsNumber is a required property for InlineObject95 and cannot be null");
            }
            else
            {
                this.FieldsNumber = fieldsNumber;
            }

            this.SearchFields = searchFields;
            this.EditorType   = editorType;
            this.Metadata     = metadata;
        }