/// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentInterventionAttendanceEvent" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="AttendanceEventCategoryDescriptor">A code describing the attendance event, for example:          Present          Unexcused absence          Excused absence          Tardy. (required).</param>
 /// <param name="EventDate">Date for this attendance event. (required).</param>
 /// <param name="InterventionReference">InterventionReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="AttendanceEventReason">The reported reason for a student&#39;s absence..</param>
 /// <param name="EducationalEnvironmentDescriptor">The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section..</param>
 /// <param name="EventDuration">The amount of time for the event as recognized by the school: 1 day &#x3D; 1, 1/2 day &#x3D; 0.5, 1/3 day &#x3D; 0.33..</param>
 /// <param name="InterventionDuration">The duration in minutes in which the student participated in the intervention during this instance..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentInterventionAttendanceEvent(string Id = default(string), string AttendanceEventCategoryDescriptor = default(string), DateTime?EventDate = default(DateTime?), EdFiInterventionReference InterventionReference = default(EdFiInterventionReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string AttendanceEventReason = default(string), string EducationalEnvironmentDescriptor = default(string), double?EventDuration = default(double?), int?InterventionDuration = default(int?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentInterventionAttendanceEvent and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "AttendanceEventCategoryDescriptor" is required (not null)
     if (AttendanceEventCategoryDescriptor == null)
     {
         throw new InvalidDataException("AttendanceEventCategoryDescriptor is a required property for EdFiStudentInterventionAttendanceEvent and cannot be null");
     }
     else
     {
         this.AttendanceEventCategoryDescriptor = AttendanceEventCategoryDescriptor;
     }
     // to ensure "EventDate" is required (not null)
     if (EventDate == null)
     {
         throw new InvalidDataException("EventDate is a required property for EdFiStudentInterventionAttendanceEvent and cannot be null");
     }
     else
     {
         this.EventDate = EventDate;
     }
     // to ensure "InterventionReference" is required (not null)
     if (InterventionReference == null)
     {
         throw new InvalidDataException("InterventionReference is a required property for EdFiStudentInterventionAttendanceEvent and cannot be null");
     }
     else
     {
         this.InterventionReference = InterventionReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiStudentInterventionAttendanceEvent and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     this.AttendanceEventReason            = AttendanceEventReason;
     this.EducationalEnvironmentDescriptor = EducationalEnvironmentDescriptor;
     this.EventDuration        = EventDuration;
     this.InterventionDuration = InterventionDuration;
     this.Etag = Etag;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentInterventionAssociation" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="CohortReference">CohortReference.</param>
 /// <param name="InterventionReference">InterventionReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="DiagnosticStatement">A statement provided by the assigner that provides information regarding why the student was assigned to this intervention..</param>
 /// <param name="Dosage">The duration of time in minutes for which the student was assigned to participate in the intervention..</param>
 /// <param name="InterventionEffectivenesses">An unordered collection of studentInterventionAssociationInterventionEffectivenesses. A measure of the effects of an intervention in each outcome domain. The rating of effectiveness takes into account four factors: the quality of the research on the intervention, the statistical significance of the research findings, the size of the differences between participants in the intervention and comparison groups and the consistency in results..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentInterventionAssociation(string Id = default(string), EdFiCohortReference CohortReference = default(EdFiCohortReference), EdFiInterventionReference InterventionReference = default(EdFiInterventionReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string DiagnosticStatement = default(string), int?Dosage = default(int?), List <EdFiStudentInterventionAssociationInterventionEffectiveness> InterventionEffectivenesses = default(List <EdFiStudentInterventionAssociationInterventionEffectiveness>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentInterventionAssociation and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "InterventionReference" is required (not null)
     if (InterventionReference == null)
     {
         throw new InvalidDataException("InterventionReference is a required property for EdFiStudentInterventionAssociation and cannot be null");
     }
     else
     {
         this.InterventionReference = InterventionReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiStudentInterventionAssociation and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     this.CohortReference     = CohortReference;
     this.DiagnosticStatement = DiagnosticStatement;
     this.Dosage = Dosage;
     this.InterventionEffectivenesses = InterventionEffectivenesses;
     this.Etag = Etag;
 }