Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / models / Book.java
t-watanabe on 25 Jun 1 KB Bookを修正
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;


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

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

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