/// <summary>
 /// Initializes a new instance of the <see cref="CalendarDayModelRm" /> class.
 /// </summary>
 /// <param name="day">Day of week [0&#x3D;Sunday, 1&#x3D;Monday, 2&#x3D;Tuesday, 3&#x3D;Wednesday, 4&#x3D;Thursday, 5&#x3D;Friday, 6&#x3D;Saturday].</param>
 /// <param name="fromInterval1">fromInterval1 (required).</param>
 /// <param name="endInterval1">endInterval1 (required).</param>
 /// <param name="fromInterval2">fromInterval2 (required).</param>
 /// <param name="endInterval2">endInterval2 (required).</param>
 public CalendarDayModelRm(int?day = default(int?), CalendarIntervalRm fromInterval1 = default(CalendarIntervalRm), CalendarIntervalRm endInterval1 = default(CalendarIntervalRm), CalendarIntervalRm fromInterval2 = default(CalendarIntervalRm), CalendarIntervalRm endInterval2 = default(CalendarIntervalRm))
 {
     // to ensure "fromInterval1" is required (not null)
     if (fromInterval1 == null)
     {
         throw new InvalidDataException("fromInterval1 is a required property for CalendarDayModelRm and cannot be null");
     }
     else
     {
         this.FromInterval1 = fromInterval1;
     }
     // to ensure "endInterval1" is required (not null)
     if (endInterval1 == null)
     {
         throw new InvalidDataException("endInterval1 is a required property for CalendarDayModelRm and cannot be null");
     }
     else
     {
         this.EndInterval1 = endInterval1;
     }
     // to ensure "fromInterval2" is required (not null)
     if (fromInterval2 == null)
     {
         throw new InvalidDataException("fromInterval2 is a required property for CalendarDayModelRm and cannot be null");
     }
     else
     {
         this.FromInterval2 = fromInterval2;
     }
     // to ensure "endInterval2" is required (not null)
     if (endInterval2 == null)
     {
         throw new InvalidDataException("endInterval2 is a required property for CalendarDayModelRm and cannot be null");
     }
     else
     {
         this.EndInterval2 = endInterval2;
     }
     this.Day = day;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarCreateRm" /> class.
 /// </summary>
 /// <param name="id">Calendar identifier.</param>
 /// <param name="name">Calendar name.</param>
 /// <param name="calendarDays">Calendar day configuration.</param>
 /// <param name="dailyWorkingInterval">dailyWorkingInterval.</param>
 /// <param name="users">Users.</param>
 public CalendarCreateRm(Guid?id = default(Guid?), string name = default(string), List <CalendarDayModelRm> calendarDays = default(List <CalendarDayModelRm>), CalendarIntervalRm dailyWorkingInterval = default(CalendarIntervalRm), List <ArxivarUserInfoRm> users = default(List <ArxivarUserInfoRm>))
 {
     this.Id                   = id;
     this.Name                 = name;
     this.CalendarDays         = calendarDays;
     this.DailyWorkingInterval = dailyWorkingInterval;
     this.Users                = users;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarRm" /> class.
 /// </summary>
 /// <param name="isDefault">Indicates if is the default calendar.</param>
 /// <param name="info">info.</param>
 /// <param name="id">Calendar identifier.</param>
 /// <param name="name">Calendar name.</param>
 /// <param name="calendarDays">Calendar day configuration.</param>
 /// <param name="dailyWorkingInterval">dailyWorkingInterval.</param>
 /// <param name="users">Users.</param>
 public CalendarRm(bool?isDefault = default(bool?), RecordInfoRm info = default(RecordInfoRm), Guid?id = default(Guid?), string name = default(string), List <CalendarDayModelRm> calendarDays = default(List <CalendarDayModelRm>), CalendarIntervalRm dailyWorkingInterval = default(CalendarIntervalRm), List <ArxivarUserInfoRm> users = default(List <ArxivarUserInfoRm>))
 {
     this.IsDefault            = isDefault;
     this.Info                 = info;
     this.Id                   = id;
     this.Name                 = name;
     this.CalendarDays         = calendarDays;
     this.DailyWorkingInterval = dailyWorkingInterval;
     this.Users                = users;
 }