Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCalendarDateReadable" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="CalendarEvents">An unordered collection of calendarDateCalendarEvents. The type of scheduled or unscheduled event for the day. (required).</param>
 /// <param name="Date">The month, day, and year of the CalendarEvent. (required).</param>
 /// <param name="CalendarReference">CalendarReference (required).</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiCalendarDateReadable(string Id = default(string), List <EdFiCalendarDateCalendarEventReadable> CalendarEvents = default(List <EdFiCalendarDateCalendarEventReadable>), DateTime?Date = default(DateTime?), EdFiCalendarReference CalendarReference = default(EdFiCalendarReference), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiCalendarDateReadable and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "CalendarEvents" is required (not null)
     if (CalendarEvents == null)
     {
         throw new InvalidDataException("CalendarEvents is a required property for EdFiCalendarDateReadable and cannot be null");
     }
     else
     {
         this.CalendarEvents = CalendarEvents;
     }
     // to ensure "Date" is required (not null)
     if (Date == null)
     {
         throw new InvalidDataException("Date is a required property for EdFiCalendarDateReadable and cannot be null");
     }
     else
     {
         this.Date = Date;
     }
     // to ensure "CalendarReference" is required (not null)
     if (CalendarReference == null)
     {
         throw new InvalidDataException("CalendarReference is a required property for EdFiCalendarDateReadable and cannot be null");
     }
     else
     {
         this.CalendarReference = CalendarReference;
     }
     this.Etag = Etag;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociationWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="entryDate">The month, day, and year on which an individual enters and begins to receive instructional services in a school. (required).</param>
 /// <param name="calendarReference">calendarReference.</param>
 /// <param name="schoolReference">schoolReference (required).</param>
 /// <param name="schoolYearTypeReference">schoolYearTypeReference.</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="entryGradeLevelDescriptor">The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session. (required).</param>
 /// <param name="entryTypeDescriptor">The process by which a student enters a school during a given academic session..</param>
 /// <param name="exitWithdrawDate">The recorded exit or withdraw date for the student..</param>
 /// <param name="exitWithdrawTypeDescriptor">The circumstances under which the student exited from membership in an educational institution..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiStudentSchoolAssociationWritable(string id = default(string), DateTime?entryDate = default(DateTime?), EdFiCalendarReference calendarReference = default(EdFiCalendarReference), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference schoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string entryGradeLevelDescriptor = default(string), string entryTypeDescriptor = default(string), DateTime?exitWithdrawDate = default(DateTime?), string exitWithdrawTypeDescriptor = default(string), string etag = default(string), StudentSchoolAssociationExtensionsWritable ext = default(StudentSchoolAssociationExtensionsWritable))
 {
     // to ensure "entryDate" is required (not null)
     if (entryDate == null)
     {
         throw new InvalidDataException("entryDate is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.EntryDate = entryDate;
     }
     // to ensure "schoolReference" is required (not null)
     if (schoolReference == null)
     {
         throw new InvalidDataException("schoolReference is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.SchoolReference = schoolReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     // to ensure "entryGradeLevelDescriptor" is required (not null)
     if (entryGradeLevelDescriptor == null)
     {
         throw new InvalidDataException("entryGradeLevelDescriptor is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.EntryGradeLevelDescriptor = entryGradeLevelDescriptor;
     }
     this.Id = id;
     this.CalendarReference          = calendarReference;
     this.SchoolYearTypeReference    = schoolYearTypeReference;
     this.EntryTypeDescriptor        = entryTypeDescriptor;
     this.ExitWithdrawDate           = exitWithdrawDate;
     this.ExitWithdrawTypeDescriptor = exitWithdrawTypeDescriptor;
     this.Etag = etag;
     this.Ext  = ext;
 }