2018-02-12 13:24:11 +00:00
|
|
|
#include "model/recipe/recipe.h"
|
2018-02-02 12:27:57 +00:00
|
|
|
|
2018-02-12 13:24:11 +00:00
|
|
|
Recipe::Recipe(){
|
|
|
|
this->name = "NULL";
|
|
|
|
this->ingredients = vector<Ingredient>();
|
|
|
|
this->instructions = vector<Instruction>();
|
|
|
|
}
|
|
|
|
|
|
|
|
Recipe::Recipe(string name, vector<Ingredient> ingredients, vector<Instruction> instructions){
|
|
|
|
this->name = name;
|
|
|
|
this->ingredients = ingredients;
|
|
|
|
this->instructions = instructions;
|
|
|
|
}
|
|
|
|
|
|
|
|
string Recipe::getName(){
|
|
|
|
return this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
vector<Ingredient> Recipe::getIngredients(){
|
|
|
|
return this->ingredients;
|
|
|
|
}
|
2018-02-02 12:27:57 +00:00
|
|
|
|
2018-02-12 13:24:11 +00:00
|
|
|
vector<Instruction> Recipe::getInstructions(){
|
|
|
|
return this->instructions;
|
2018-02-02 12:27:57 +00:00
|
|
|
}
|