package com.example.citrusclient.models; public class Book { private int bookId; private String title; private boolean publicity; private String color; private String accountId; private String time; private int favoriteCount; public Book(String accountId, Integer bookId, String title, boolean publicity, String color) { this.accountId = accountId; this.bookId = bookId; this.title = title; this.publicity = publicity; this.color = color; this.favoriteCount = 0; } public Book(){ } //Setter public void setTitle(String t) {title = t;} public void setPublicity(boolean p) {publicity = p;} public void setColor(String c) {color = c;} 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;} public boolean getPublicity() {return publicity;} public String getColor() {return color;} public int getBookId() {return bookId;} public String getAccountId() {return accountId;} public String getTime() {return time;} public int getFavoritedCount() {return favoriteCount;} }