public Model(RecipeNode[] recipes, PantryItem[] pantry, double score)
 {
     this.recipeids = recipes.Select(r => r.RecipeId).ToArray();
     this.pantry = pantry;
     this.score = score;
 }
 public ProfileCreator AddPantryItem(PantryItem item)
 {
     pantry.Add(item);
      return this;
 }
Exemple #3
0
 public Model(RecipeNode[] recipes, PantryItem[] pantry, double score)
 {
     this._recipeids = recipes.Select(r => { return r.RecipeId; }).ToArray();
      this._pantry = pantry;
      this._score = score;
 }