diff --git a/Party_APP/src/model/activity.java b/Party_APP/src/model/activity.java new file mode 100644 index 0000000..8c12547 --- /dev/null +++ b/Party_APP/src/model/activity.java @@ -0,0 +1,16 @@ +package model; + +public class activity { + public String title; + public String details; + public String misc; + // Constructor + public activity(String a, String b, String c){ + this.title=a; + this.details=b; + this.misc=c; + } + activity newactivity; + activity joke; + activity games; +} diff --git a/Party_APP/src/model/foodAndMenu.java b/Party_APP/src/model/foodAndMenu.java new file mode 100644 index 0000000..b7420eb --- /dev/null +++ b/Party_APP/src/model/foodAndMenu.java @@ -0,0 +1,79 @@ +package model; + +public class foodAndMenu { + public String foodname; + //We need to add the image in the foodAndMenu Contructor + //to commit + public String descriptionfood; + public String recipe; + + //Constructor + public foodAndMenu(String a,String s, String k){ + this.foodname=a; + this.descriptionfood=s; + this.recipe=k; + } + foodAndMenu appetizer; + foodAndMenu entree; + foodAndMenu desert; + foodAndMenu snack; + //Getters + public void setEntree(String x, String s, String k){ + entree.foodname=x; + entree.descriptionfood=s; + entree.recipe=k; + } + public void setappetizer(String x,String s, String k){ + appetizer.foodname=x; + appetizer.descriptionfood=s; + appetizer.recipe=k; + } + public void setdesert (String x,String s, String k){ + desert.foodname=x; + desert.descriptionfood=s; + desert.recipe=k; + } + public void setsnack(String x,String s, String k){ + snack.foodname=x; + snack.descriptionfood=s; + snack.recipe=k; + } + //Setters + public foodAndMenu getAppetizer(String k){ + if (appetizer.foodname.equalsIgnoreCase(k)){ + return appetizer; + } + else { + System.out.println("There is no such item on the menu"); + return null; + } + } + public foodAndMenu getDesert(String k){ + if (desert.foodname.equalsIgnoreCase(k)){ + return desert; + } + else { + System.out.println("There is no such item on the menu"); + return null; + } + } + public foodAndMenu getSnack(String k){ + if (snack.foodname.equalsIgnoreCase(k)){ + return snack; + } + else { + System.out.println("There is no such item on the menu"); + return null; + } + } + public foodAndMenu getEntree(String k){ + if (entree.foodname.equalsIgnoreCase(k)){ + return entree; + } + else { + System.out.println("There is no such item on the menu"); + return null; + } + } + +}