Exemplo n.º 1
0
 public FoodModel(TimeOfDayEmum timeofday, double cal, double carb, double fat, double prot, string moreInfo, double portion, string name, int classId, int timesPressed, bool ispartofmeal = false, int mealno = -1)
 {
     Calories     = cal;
     Protein      = prot;
     Carbs        = carb;
     Fat          = fat;
     MoreInfo     = moreInfo;
     ClassId      = classId;
     TimesPressed = timesPressed;
     Portion      = portion;
     Name         = name;
     TimeOfDay    = timeofday;
     isPartOfMeal = ispartofmeal;
     MealNo       = mealno;
 }
Exemplo n.º 2
0
 public MealModel(TimeOfDayEmum timeofday, string mealName, int mealclassId, int timesPressed)
 {
     TimeOfDay    = timeofday;
     MealName     = mealName;
     MealClassId  = mealclassId;
     TimesPressed = timesPressed;
     foodClassIds = new List <int>();
     //Calories = cal;
     //Protein = prot;
     //Carbs = carb;
     //Fat = fat;
     //MoreInfo = moreInfo;
     //ClassId = classId;
     //TimesPressed = timesPressed;
     //Portion = portion;
     //Name = name;
     //TimeOfDay = timeofday;
     //isPartOfMeal = ispartofmeal;
     //MealNo = mealno;
 }