예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiClassPeriodWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="classPeriodName">An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules). (required).</param>
 /// <param name="schoolReference">schoolReference (required).</param>
 /// <param name="meetingTimes">An unordered collection of classPeriodMeetingTimes. The meeting time(s) for a class period..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiClassPeriodWritable(string id = default(string), string classPeriodName = default(string), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), List <EdFiClassPeriodMeetingTimeWritable> meetingTimes = default(List <EdFiClassPeriodMeetingTimeWritable>), string etag = default(string), ClassPeriodExtensionsWritable ext = default(ClassPeriodExtensionsWritable))
 {
     // to ensure "classPeriodName" is required (not null)
     if (classPeriodName == null)
     {
         throw new InvalidDataException("classPeriodName is a required property for EdFiClassPeriodWritable and cannot be null");
     }
     else
     {
         this.ClassPeriodName = classPeriodName;
     }
     // to ensure "schoolReference" is required (not null)
     if (schoolReference == null)
     {
         throw new InvalidDataException("schoolReference is a required property for EdFiClassPeriodWritable and cannot be null");
     }
     else
     {
         this.SchoolReference = schoolReference;
     }
     this.Id           = id;
     this.MeetingTimes = meetingTimes;
     this.Etag         = etag;
     this.Ext          = ext;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiClassPeriodWritable" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="ClassPeriodName">An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules). (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="MeetingTimes">An unordered collection of classPeriodMeetingTimes. The meeting time(s) for a class period..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="Ext">Ext.</param>
 public EdFiClassPeriodWritable(string Id = default(string), string ClassPeriodName = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), List <EdFiClassPeriodMeetingTimeWritable> MeetingTimes = default(List <EdFiClassPeriodMeetingTimeWritable>), string Etag = default(string), ClassPeriodExtensionsWritable Ext = default(ClassPeriodExtensionsWritable))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiClassPeriodWritable and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ClassPeriodName" is required (not null)
     if (ClassPeriodName == null)
     {
         throw new InvalidDataException("ClassPeriodName is a required property for EdFiClassPeriodWritable and cannot be null");
     }
     else
     {
         this.ClassPeriodName = ClassPeriodName;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiClassPeriodWritable and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     this.MeetingTimes = MeetingTimes;
     this.Etag         = Etag;
     this.Ext          = Ext;
 }