/// <summary> /// Sets the value of the <c><FreeAndReducedStatus></c> element. /// </summary> /// <param name="val">A FreeReducedStatus object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Student's eligibility for free and reduced meals."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetFreeAndReducedStatus( FreeReducedStatus val ) { SetField( StudentDTD.STUDENTSNAPSHOT_FREEANDREDUCEDSTATUS, val ); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A FreeReducedStatus object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Meal status type."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void SetType( FreeReducedStatus val ) { SetField( FoodDTD.MEALSTATUS_TYPE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Meal status type.</param> /// public MealStatus( FreeReducedStatus type ) : base(FoodDTD.MEALSTATUS) { this.SetType( type ); }
///<summary>Sets the value of the <c><MealStatus></c> element.</summary> /// <param name="Type">Meal status type.</param> ///<remarks> /// <para>This form of <c>setMealStatus</c> is provided as a convenience method /// that is functionally equivalent to the <c>MealStatus</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetMealStatus( FreeReducedStatus Type ) { RemoveChild( FoodDTD.RATE_MEALSTATUS); AddChild( FoodDTD.RATE_MEALSTATUS, new MealStatus( Type ) ); }