Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetEventResult" /> class.
 /// </summary>
 /// <param name="Task">Task (required).</param>
 /// <param name="Acl">Acl (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 /// <param name="_Event">_Event (required).</param>
 public GetEventResult(TaskRecord Task = null, TaskACLRecord Acl = null, ResponseHeaderRecord Hdr = null, CalendarEventRecord _Event = null)
 {
     // to ensure "Task" is required (not null)
     if (Task == null)
     {
         throw new InvalidDataException("Task is a required property for GetEventResult and cannot be null");
     }
     else
     {
         this.Task = Task;
     }
     // to ensure "Acl" is required (not null)
     if (Acl == null)
     {
         throw new InvalidDataException("Acl is a required property for GetEventResult and cannot be null");
     }
     else
     {
         this.Acl = Acl;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for GetEventResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
     // to ensure "_Event" is required (not null)
     if (_Event == null)
     {
         throw new InvalidDataException("_Event is a required property for GetEventResult and cannot be null");
     }
     else
     {
         this._Event = _Event;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChatBriefRecord" /> class.
 /// </summary>
 /// <param name="AttachmentsCount">.</param>
 /// <param name="TaskRecord">TaskRecord.</param>
 /// <param name="CcersCount">.</param>
 /// <param name="AssigneesCount">.</param>
 /// <param name="Acl">Acl.</param>
 /// <param name="FoldersCount">.</param>
 /// <param name="AllParticipantsCount">.</param>
 public ChatBriefRecord(int?AttachmentsCount = null, ChatV2Record TaskRecord = null, int?CcersCount = null, int?AssigneesCount = null, TaskACLRecord Acl = null, int?FoldersCount = null, int?AllParticipantsCount = null)
 {
     this.AttachmentsCount = AttachmentsCount;
     this.TaskRecord       = TaskRecord;
     this.CcersCount       = CcersCount;
     this.AssigneesCount   = AssigneesCount;
     this.Acl                  = Acl;
     this.FoldersCount         = FoldersCount;
     this.AllParticipantsCount = AllParticipantsCount;
 }