Newer
Older
CitrusServer / src / main / java / org / ntlab / citrusserver / entities / BookModel.java
k-sakoda 24 days ago 2 KB setterとgetterを追加
package org.ntlab.citrusserver.entities;

public class BookModel {

    private int bookId;
    private String title;
    private boolean publicity;
    private String color;
    private String accountId;
    private String time;
    private String accountColor;
    private int favoriteCount;

    public BookModel(){}

    public BookModel(int bookId, String title, boolean publicity, String color, String accountId, String time, String accountColor) {
        this.bookId = bookId;
        this.title = title;
        this.publicity = publicity;
        this.color = color;
        this.accountId = accountId;
        this.time = time;
        this.accountColor = accountColor;
    }

    public BookModel(Book book, String accountId, String accountColor) {
        this.bookId = book.getBookId();
        this.title = book.getTitle();
        this.publicity = book.getPublicity();
        this.color = book.getColor();
        this.time = book.getTime();
        this.favoriteCount = book.getFavoritedCount();
        this.accountColor = accountColor;
        this.accountId = accountId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getTitle() {
        return title;
    }

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

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    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;
    }
}