Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.water_group.waterordering.Model;
- public class Food {
- private String Name, Image, Description, Price, MenuId, Stock;
- public Food() {
- }
- public Food(String name, String image, String description, String price, String stock, String menuId) {
- this.Name = name;
- this.Image = image;
- this.Description = description;
- this.Price = price;
- this.Stock = stock;
- this.MenuId = menuId;
- }
- public String getName() {
- return Name;
- }
- public void setName(String name) {
- Name = name;
- }
- public String getImage() {
- return Image;
- }
- public void setImage(String image) {
- Image = image;
- }
- public String getDescription() {
- return Description;
- }
- public void setDescription(String description) {
- Description = description;
- }
- public String getPrice() {
- return Price;
- }
- public void setPrice(String price) {
- Price = price;
- }
- public String getStock() {
- return Stock;
- }
- public void setStock(String stock) {
- Stock = stock;
- }
- public String getMenuId() {
- return MenuId;
- }
- public void setMenuId(String menuId) {
- MenuId = menuId;
- }
- }
- package com.water_group.waterordering.Model;
- public class Order {
- private String ProductId;
- private String ProductName;
- private String Quantity;
- private String Price;
- public Order(){}
- public Order(String productId, String productName, String quantity, String price) {
- this.ProductId = productId;
- this.ProductName = productName;
- this.Quantity = quantity;
- this.Price = price;
- }
- public String getProductId() {
- return ProductId;
- }
- public void setProductId(String productId) {
- ProductId = productId;
- }
- public String getProductName() {
- return ProductName;
- }
- public void setProductName(String productName) {
- ProductName = productName;
- }
- public String getQuantity() {
- return Quantity;
- }
- public void setQuantity(String quantity) {
- Quantity = quantity;
- }
- public String getPrice() {
- return Price;
- }
- public void setPrice(String price) {
- Price = price;
- }
- }
- package com.water_group.waterordering.Model;
- import java.util.List;
- public class Request {
- private String phone;
- private String name;
- private String address;
- private String total;
- private String status;
- private List<Order> foods; // list of food order
- public Request() {
- }
- public Request(String phone, String name, String address, String total, List<Order> foods) {
- this.phone = phone;
- this.name = name;
- this.address = address;
- this.total = total;
- this.foods = foods;
- this.status = "0"; // Default is 0
- }
- public String getStatus() {
- return status;
- }
- public void setStatus(String status) {
- this.status = status;
- }
- public String getPhone() {
- return phone;
- }
- public void setPhone(String phone) {
- this.phone = phone;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- public String getTotal() {
- return total;
- }
- public void setTotal(String total) {
- this.total = total;
- }
- public List<Order> getFoods() {
- return foods;
- }
- public void setFoods(List<Order> foods) {
- this.foods = foods;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement