diff --git a/app/src/main/java/com/example/citrusclient/models/Book.java b/app/src/main/java/com/example/citrusclient/models/Book.java index eea8a6d..b536741 100644 --- a/app/src/main/java/com/example/citrusclient/models/Book.java +++ b/app/src/main/java/com/example/citrusclient/models/Book.java @@ -8,6 +8,7 @@ private String color; private String accountId; private String time; + private int favoriteCount; public Book(String accountId, Integer bookId, String title, boolean publicity, String color) { @@ -16,6 +17,7 @@ this.title = title; this.publicity = publicity; this.color = color; + this.favoriteCount = 0; } public Book(){ @@ -29,6 +31,7 @@ public void setBookId(int id) {bookId = id;} public void setAccountId(String a) {accountId = a;} public void setTime(String ti) {time = ti;} + public void setFavoritedCount(int f) {favoriteCount = f;} //Getter public String getTitle() {return title;} @@ -37,4 +40,5 @@ public int getBookId() {return bookId;} public String getAccountId() {return accountId;} public String getTime() {return time;} + public int getFavoritedCount() {return favoriteCount;} }