Commit b229f697 authored by Willard's avatar Willard

Minor refactoring, add entities for reviews

parent 297f5366
...@@ -2,9 +2,6 @@ package com.testapp.entities; ...@@ -2,9 +2,6 @@ package com.testapp.entities;
import java.util.List; import java.util.List;
/**
* Created by candy on 10/19/16.
*/
public class CData { public class CData {
String date; String date;
......
package com.testapp.entities; package com.testapp.entities;
/**
* Created by candy on 10/19/16.
*/
public class Cuisine { public class Cuisine {
int id; int id;
......
...@@ -2,9 +2,6 @@ package com.testapp.entities; ...@@ -2,9 +2,6 @@ package com.testapp.entities;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
/**
* Created by candy on 10/19/16.
*/
public class Dish { public class Dish {
int id; int id;
......
package com.testapp.entities;
public class DishReview {
int id;
String title;
String body;
int rating;
int user_id;
int dish_id;
public DishReview(int id, String title, String body, int rating, int user_id, int dish_id) {
this.id = id;
this.title = title;
this.body = body;
this.rating = rating;
this.user_id = user_id;
this.dish_id = dish_id;
}
public int getId() { return id; }
public void setId(int id) { this.id = id; }
public String getTitle() { return title; }
public void setTitle(String title) { this.title = title; }
public String getBody() { return body; }
public void setBody(String body) { this.body = body; }
public int getRating() { return rating; }
public void setRating(int rating) { this.rating = rating; }
public int getUserId() { return user_id; }
public void setUserId(int user_id) { this.user_id = user_id; }
public int getDishId() { return dish_id; }
public void setDishId(int dish_id) { this.dish_id = dish_id; }
}
package com.testapp.entities; package com.testapp.entities;
/**
* Created by candy on 10/19/16.
*/
public class DishType { public class DishType {
int id; int id;
......
package com.testapp.entities; package com.testapp.entities;
/**
* Created by candy on 10/19/16.
*/
public class Location { public class Location {
int id; int id;
......
package com.testapp.entities; package com.testapp.entities;
/**
* Created by candy on 10/19/16.
*/
public class Owner { public class Owner {
int id; int id;
......
package com.testapp.entities; package com.testapp.entities;
/**
* Created by candy on 10/19/16.
*/
public class Stall { public class Stall {
int id; int id;
......
package com.testapp.entities;
public class StallReview {
int id;
String title;
String body;
int rating;
int user_id;
int stall_id;
public StallReview(int id, String title, String body, int rating, int user_id, int stall_id) {
this.id = id;
this.title = title;
this.body = body;
this.rating = rating;
this.user_id = user_id;
this.stall_id = stall_id;
}
public int getId() { return id; }
public void setId(int id) { this.id = id; }
public String getTitle() { return title; }
public void setTitle(String title) { this.title = title; }
public String getBody() { return body; }
public void setBody(String body) { this.body = body; }
public int getRating() { return rating; }
public void setRating(int rating) { this.rating = rating; }
public int getUserId() { return user_id; }
public void setUserId(int user_id) { this.user_id = user_id; }
public int getStallId() { return stall_id; }
public void setStallId(int stall_id) { this.stall_id = stall_id; }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment