Example #1
0
 /// <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 );
 }
Example #2
0
 ///<summary>Adds the value of the <c>&lt;Meal&gt;</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));
 }
Example #3
0
 /// <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);
 }
Example #4
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MealType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "What type of meal is required"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetMealType(MealType val)
 {
     SetField(CateringDTD.MEAL_MEALTYPE, val);
 }
Example #5
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MealType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "What type of meal is required"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetMealType( MealType val )
 {
     SetField( CateringDTD.MEAL_MEALTYPE, val );
 }