Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateEventResult" /> class.
 /// </summary>
 /// <param name="TaskRecord">TaskRecord (required).</param>
 /// <param name="CalendarEventV2Record">CalendarEventV2Record (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 public CreateEventResult(TaskRecord TaskRecord = null, CalendarEventV2Record CalendarEventV2Record = null, ResponseHeaderRecord Hdr = null)
 {
     // to ensure "TaskRecord" is required (not null)
     if (TaskRecord == null)
     {
         throw new InvalidDataException("TaskRecord is a required property for CreateEventResult and cannot be null");
     }
     else
     {
         this.TaskRecord = TaskRecord;
     }
     // to ensure "CalendarEventV2Record" is required (not null)
     if (CalendarEventV2Record == null)
     {
         throw new InvalidDataException("CalendarEventV2Record is a required property for CreateEventResult and cannot be null");
     }
     else
     {
         this.CalendarEventV2Record = CalendarEventV2Record;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for CreateEventResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateEventInput" /> class.
 /// </summary>
 /// <param name="Task">Task (required).</param>
 /// <param name="Options">Options (required).</param>
 /// <param name="CalendarEvent">CalendarEvent (required).</param>
 public CreateEventInput(TaskRecord Task = null, CalendarEventInstancesOptionsRecord Options = null, CalendarEventV2Record CalendarEvent = null)
 {
     // to ensure "Task" is required (not null)
     if (Task == null)
     {
         throw new InvalidDataException("Task is a required property for CreateEventInput and cannot be null");
     }
     else
     {
         this.Task = Task;
     }
     // to ensure "Options" is required (not null)
     if (Options == null)
     {
         throw new InvalidDataException("Options is a required property for CreateEventInput and cannot be null");
     }
     else
     {
         this.Options = Options;
     }
     // to ensure "CalendarEvent" is required (not null)
     if (CalendarEvent == null)
     {
         throw new InvalidDataException("CalendarEvent is a required property for CreateEventInput and cannot be null");
     }
     else
     {
         this.CalendarEvent = CalendarEvent;
     }
 }