/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="day">The Day of week that Meal is required</param> ///<param name="mealTime">Which meal of the day is required</param> ///<param name="mealType">What type of meal is required</param> /// public Meal( Day day, MealTime mealTime, MealType mealType ) : base(CateringDTD.MEAL) { this.SetDay( day ); this.SetMealTime( mealTime ); this.SetMealType( mealType ); }
///<summary>Adds the value of the <c><Meal></c> element.</summary> /// <param name="Day">The Day of week that Meal is required</param> /// <param name="MealTime">Which meal of the day is required</param> /// <param name="MealType">What type of meal is required</param> ///<remarks> /// <para>This form of <c>setMeal</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddMeal</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddMeal(Day Day, MealTime MealTime, MealType MealType) { AddChild(CateringDTD.MEALS_MEAL, new Meal(Day, MealTime, MealType)); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="day">The Day of week that Meal is required</param> ///<param name="mealTime">Which meal of the day is required</param> ///<param name="mealType">What type of meal is required</param> /// public Meal(Day day, MealTime mealTime, MealType mealType) : base(CateringDTD.MEAL) { this.SetDay(day); this.SetMealTime(mealTime); this.SetMealType(mealType); }
/// <summary> /// Sets the value of the <c><MealTime></c> element. /// </summary> /// <param name="val">A MealTime object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Which meal of the day is required"</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetMealTime(MealTime val) { SetField(CateringDTD.MEAL_MEALTIME, val); }
/// <summary> /// Sets the value of the <c><MealTime></c> element. /// </summary> /// <param name="val">A MealTime object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Which meal of the day is required"</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetMealTime( MealTime val ) { SetField( CateringDTD.MEAL_MEALTIME, val ); }