56 lines
1.3 KiB
Java
56 lines
1.3 KiB
Java
package de.hsos.swa.ma.api.al;
|
|
|
|
public class Cocktail {
|
|
public long idDrink;
|
|
public String strDrink;
|
|
//public ArrayList<Ingredient> ingredients;
|
|
public String strInstructionsDE;
|
|
|
|
/*public Cocktail() {
|
|
|
|
}
|
|
|
|
public Cocktail(long id, String name, /*String ingredients, String recipe) {
|
|
this.idDrink = id;
|
|
this.strDrink = name;
|
|
//this.ingredients = ingredients;
|
|
this.strInstructionsDE = recipe;
|
|
}
|
|
|
|
public long getId(){
|
|
return this.idDrink;
|
|
}
|
|
|
|
public void setId(long idDrink){
|
|
this.idDrink = idDrink;
|
|
}
|
|
|
|
public String getName(){
|
|
return this.strDrink;
|
|
}
|
|
|
|
public void setName(String strDrink){
|
|
this.strDrink = strDrink;
|
|
}
|
|
|
|
/*public String getIngredients(){
|
|
return this.ingredients;
|
|
}
|
|
|
|
public void setIngredients(String ingredients){
|
|
this.ingredients = ingredients;
|
|
}
|
|
|
|
public String getRecipe(){
|
|
return this.strInstructionsDE;
|
|
}
|
|
|
|
public void setRecipe(String strInstructionsDE){
|
|
this.strInstructionsDE = strInstructionsDE;
|
|
}
|
|
|
|
public String toString() {
|
|
return "ID: " + this.idDrink + "\nName: " + this.strDrink + /*"\nZutaten: " + this.ingredients + "\nRezept: " + this.strInstructionsDE;
|
|
}*/
|
|
}
|