Exemple #1
0
        public string getCanteenMeals(CanteenData canteen)
        {
            StringBuilder sb = new StringBuilder(canteenMeals[random.Next(0, canteenMeals.Length)]);

            sb.Replace("<DIA>", canteen.DayDescription);
            sb.Replace("<REFEIÇÃO>", canteen.Meal);
            sb.Replace("<NOME_CANTINA>", canteen.Canteen);
            sb.Replace("<CARNE>", canteen.Meat);
            sb.Replace("<PEIXE>", canteen.Fish);
            sb.Replace("<OPÇÃO>", canteen.Option);
            sb.Replace("<DIETA>", canteen.Diet);
            sb.Replace("<VEGETARIANO>", canteen.Vegetarian);

            return(sb.ToString());
        }
Exemple #2
0
 public string getDisableCanteen(CanteenData canteen)
 {
     return(canteenDisable[random.Next(0, canteenDisable.Length)].Replace("<NOME_CANTINA>", canteen.Canteen).Replace("<REFEIÇÃO>", canteen.Meal).Replace("<DIA>", canteen.DayDescription));
 }