/// <summary> /// Initializes a new instance of the <see cref="UpdateDraftInput" /> class. /// </summary> /// <param name="Taskrecord">Taskrecord (required).</param> public UpdateDraftInput(TaskDraftRecord Taskrecord = null) { // to ensure "Taskrecord" is required (not null) if (Taskrecord == null) { throw new InvalidDataException("Taskrecord is a required property for UpdateDraftInput and cannot be null"); } else { this.Taskrecord = Taskrecord; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateDraftInput" /> class. /// </summary> /// <param name="Taskkey"> (required).</param> /// <param name="Taskrecord">Taskrecord (required).</param> public CreateDraftInput(string Taskkey = null, TaskDraftRecord Taskrecord = null) { // to ensure "Taskkey" is required (not null) if (Taskkey == null) { throw new InvalidDataException("Taskkey is a required property for CreateDraftInput and cannot be null"); } else { this.Taskkey = Taskkey; } // to ensure "Taskrecord" is required (not null) if (Taskrecord == null) { throw new InvalidDataException("Taskrecord is a required property for CreateDraftInput and cannot be null"); } else { this.Taskrecord = Taskrecord; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateDraftResult" /> class. /// </summary> /// <param name="Task">Task (required).</param> /// <param name="Hdr">Hdr (required).</param> public CreateDraftResult(TaskDraftRecord Task = null, ResponseHeaderRecord Hdr = null) { // to ensure "Task" is required (not null) if (Task == null) { throw new InvalidDataException("Task is a required property for CreateDraftResult and cannot be null"); } else { this.Task = Task; } // to ensure "Hdr" is required (not null) if (Hdr == null) { throw new InvalidDataException("Hdr is a required property for CreateDraftResult and cannot be null"); } else { this.Hdr = Hdr; } }