コード例 #1
0
ファイル: Meal.cs プロジェクト: rafidzal/OpenADK-csharp
 /// <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 );
 }
コード例 #2
0
ファイル: Meals.cs プロジェクト: rubitek/OpenADK-csharp
 ///<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));
 }
コード例 #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);
 }
コード例 #4
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealTime&gt;</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);
 }
コード例 #5
0
ファイル: Meal.cs プロジェクト: rafidzal/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>&lt;MealTime&gt;</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 );
 }