示例#1
0
 public MapJsonModel ToJsonModel()
 {
     return(new MapJsonModel
     {
         Snakes = snakes.Select(x => x.ToJsonModel()).ToList(),
         Foods = Foods.ToList(),
         Height = Height,
         Width = Width,
         Winner = Winner
     });
 }
示例#2
0
 private void UpdatePreheatTemperature()
 {
     if (foods.Any())
     {
         var cookingMethod = CookingMethodFactory.GenerateCookingMethod(Foods.ToList());
         PreheatTemperature = cookingMethod.First().Temperature;
     }
     else
     {
         PreheatTemperature = null;
     }
 }
示例#3
0
 private void AddCustomToOrder(object obj)
 {
     Order.Foods = Foods.ToList();
     CustomMessage();
 }