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";
|
2018-02-12 14:15:04 +00:00
|
|
|
this->ingredients = vector<RecipeIngredient>();
|
|
|
|
this->instruction = Instruction();
|
2018-02-12 13:24:11 +00:00
|
|
|
}
|
|
|
|
|
2018-02-12 14:15:04 +00:00
|
|
|
Recipe::Recipe(string name, vector<RecipeIngredient> ingredients, Instruction instruction)
|
|
|
|
{
|
2018-02-12 13:24:11 +00:00
|
|
|
this->name = name;
|
|
|
|
this->ingredients = ingredients;
|
2018-02-12 14:15:04 +00:00
|
|
|
this->instruction = instruction;
|
2018-02-12 13:24:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
string Recipe::getName(){
|
|
|
|
return this->name;
|
|
|
|
}
|
|
|
|
|
2018-02-12 14:15:04 +00:00
|
|
|
vector<RecipeIngredient> Recipe::getIngredients(){
|
2018-02-12 13:24:11 +00:00
|
|
|
return this->ingredients;
|
|
|
|
}
|
2018-02-02 12:27:57 +00:00
|
|
|
|
2018-02-12 14:15:04 +00:00
|
|
|
Instruction Recipe::getInstruction(){
|
|
|
|
return this->instruction;
|
2018-02-02 12:27:57 +00:00
|
|
|
}
|