}//end method /// <summary> /// Sets the maximum calories for the day. Must be a minimum of 1000. /// If below minimum, a safe default will be set. /// </summary> /// <param name="calories"></param> public void SetCalorieGoal(int calories) { if (calorieGoal > GoalSettings.MINIMUM_CALORIES) { this.calorieGoal = calories; } else { this.calorieGoal = GoalSettings.CalorieGoal(); } }//end method
}//end method /// <summary> /// Sets the maximum fat for the day. Must be above 0. /// If below 0, a safe default will be set. /// </summary> /// <param name="fat"></param> public void SetFatGoal(int fat) { if (fatGoal > GoalSettings.MINIMUM_NUTRIENT_VALUE) { this.fatGoal = fat; } else { this.fatGoal = GoalSettings.FatGoal(); } }//end method
}//end method /// <summary> /// Sets the maximum protein for the day. Must be above 0. /// If below 0, a safe default will be set. /// </summary> /// <param name="protein"></param> public void SetProteinGoal(int protein) { if (proteinGoal > GoalSettings.MINIMUM_NUTRIENT_VALUE) { this.proteinGoal = protein; } else { this.proteinGoal = GoalSettings.ProteinGoal(); } }//end method
}//end method /// <summary> /// Sets the maximum carbs for the day. Must be above 0. /// If below 0, a safe default will be set. /// </summary> /// <param name="carbs"></param> public void SetCarbsGoal(int carbs) { if (carbsGoal > GoalSettings.MINIMUM_NUTRIENT_VALUE) { this.carbsGoal = carbs; } else { this.carbsGoal = GoalSettings.CarbGoal(); } }//end method