diff --git a/app/src/main/java/com/example/citrusclient/models/BookModel.java b/app/src/main/java/com/example/citrusclient/models/BookModel.java index 317b57d..2e121f9 100644 --- a/app/src/main/java/com/example/citrusclient/models/BookModel.java +++ b/app/src/main/java/com/example/citrusclient/models/BookModel.java @@ -2,33 +2,67 @@ public class BookModel { - private Account account; - private Book book; + private int bookId; + private String title; + private boolean publicity; + private String color; + private String time; + private String accountColor; + private int favoriteCount; - public BookModel(){} - - public BookModel(Account ac, Book bk) { - account = ac; - book = bk; - } - public Account getAccount() { - return account; + public int getBookId() { + return bookId; } - public void setAccount(Account account) { - this.account = account; + public void setBookId(int bookId) { + this.bookId = bookId; } - public Book getBook() { - return book; + public String getTitle() { + return title; } - public void setBook(Book book) { - this.book = book; + public void setTitle(String title) { + this.title = title; } + public boolean isPublicity() { + return publicity; + } + public void setPublicity(boolean publicity) { + this.publicity = publicity; + } + public String getColor() { + return color; + } + public void setColor(String color) { + this.color = color; + } + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getAccountColor() { + return accountColor; + } + + public void setAccountColor(String accountColor) { + this.accountColor = accountColor; + } + + public int getFavoriteCount() { + return favoriteCount; + } + + public void setFavoriteCount(int favoriteCount) { + this.favoriteCount = favoriteCount; + } }