/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">A RefId</param> ///<param name="ttDayId">A TTDayId</param> ///<param name="periodIndex">Index of period this lesson/meeting starts</param> ///<param name="type">Lesson/meeting type The value here determines whether a TeachingGroupID or an NTCode is required</param> /// public Lesson(string refId, string ttDayId, int?periodIndex, LessonType type) : base(Adk.SifVersion, SchoolDTD.LESSON) { this.RefId = refId; this.TTDayId = ttDayId; this.PeriodIndex = periodIndex; this.SetType(type); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">A RefId</param> ///<param name="ttDayId">A TTDayId</param> ///<param name="periodIndex">Index of period this lesson/meeting starts</param> ///<param name="type">Lesson/meeting type The value here determines whether a TeachingGroupID or an NTCode is required</param> /// public Lesson( string refId, string ttDayId, int? periodIndex, LessonType type ) : base(Adk.SifVersion, SchoolDTD.LESSON) { this.RefId = refId; this.TTDayId = ttDayId; this.PeriodIndex = periodIndex; this.SetType( type ); }
/// <summary> /// Sets the value of the <c><Type></c> element. /// </summary> /// <param name="val">A LessonType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Lesson/meeting type The value here determines whether a TeachingGroupID or an NTCode is required"</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType( LessonType val ) { SetField( SchoolDTD.LESSON_TYPE, val ); }
/// <summary> /// Sets the value of the <c><Type></c> element. /// </summary> /// <param name="val">A LessonType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Lesson/meeting type The value here determines whether a TeachingGroupID or an NTCode is required"</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType(LessonType val) { SetField(SchoolDTD.LESSON_TYPE, val); }