| |
---|
| | 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(){ |
---|
| | |
---|
| |
---|
| | 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;} |
---|
| | } |
---|
| | |
---|
| | |