Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiGradeWritable" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="GradeTypeDescriptor">The type of grade reported (e.g., Exam, Final, Grading Period). (required).</param>
 /// <param name="GradingPeriodReference">GradingPeriodReference (required).</param>
 /// <param name="StudentSectionAssociationReference">StudentSectionAssociationReference (required).</param>
 /// <param name="LetterGradeEarned">A final or interim (grading period) indicator of student performance in a class as submitted by the instructor..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="Ext">Ext.</param>
 public EdFiGradeWritable(string Id = default(string), string GradeTypeDescriptor = default(string), EdFiGradingPeriodReference GradingPeriodReference = default(EdFiGradingPeriodReference), EdFiStudentSectionAssociationReference StudentSectionAssociationReference = default(EdFiStudentSectionAssociationReference), string LetterGradeEarned = default(string), string Etag = default(string), GradeExtensionsWritable Ext = default(GradeExtensionsWritable))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "GradeTypeDescriptor" is required (not null)
     if (GradeTypeDescriptor == null)
     {
         throw new InvalidDataException("GradeTypeDescriptor is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.GradeTypeDescriptor = GradeTypeDescriptor;
     }
     // to ensure "GradingPeriodReference" is required (not null)
     if (GradingPeriodReference == null)
     {
         throw new InvalidDataException("GradingPeriodReference is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.GradingPeriodReference = GradingPeriodReference;
     }
     // to ensure "StudentSectionAssociationReference" is required (not null)
     if (StudentSectionAssociationReference == null)
     {
         throw new InvalidDataException("StudentSectionAssociationReference is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.StudentSectionAssociationReference = StudentSectionAssociationReference;
     }
     this.LetterGradeEarned = LetterGradeEarned;
     this.Etag = Etag;
     this.Ext  = Ext;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiGradeWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="gradeTypeDescriptor">The type of grade reported (e.g., Exam, Final, Grading Period). (required).</param>
 /// <param name="gradingPeriodReference">gradingPeriodReference (required).</param>
 /// <param name="studentSectionAssociationReference">studentSectionAssociationReference (required).</param>
 /// <param name="letterGradeEarned">A final or interim (grading period) indicator of student performance in a class as submitted by the instructor..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiGradeWritable(string id = default(string), string gradeTypeDescriptor = default(string), EdFiGradingPeriodReference gradingPeriodReference = default(EdFiGradingPeriodReference), EdFiStudentSectionAssociationReference studentSectionAssociationReference = default(EdFiStudentSectionAssociationReference), string letterGradeEarned = default(string), string etag = default(string), GradeExtensionsWritable ext = default(GradeExtensionsWritable))
 {
     // to ensure "gradeTypeDescriptor" is required (not null)
     if (gradeTypeDescriptor == null)
     {
         throw new InvalidDataException("gradeTypeDescriptor is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.GradeTypeDescriptor = gradeTypeDescriptor;
     }
     // to ensure "gradingPeriodReference" is required (not null)
     if (gradingPeriodReference == null)
     {
         throw new InvalidDataException("gradingPeriodReference is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.GradingPeriodReference = gradingPeriodReference;
     }
     // to ensure "studentSectionAssociationReference" is required (not null)
     if (studentSectionAssociationReference == null)
     {
         throw new InvalidDataException("studentSectionAssociationReference is a required property for EdFiGradeWritable and cannot be null");
     }
     else
     {
         this.StudentSectionAssociationReference = studentSectionAssociationReference;
     }
     this.Id = id;
     this.LetterGradeEarned = letterGradeEarned;
     this.Etag = etag;
     this.Ext  = ext;
 }