diff --git a/app/src/main/java/com/example/citrusclient/models/Book.java b/app/src/main/java/com/example/citrusclient/models/Book.java index f69ff74..19140a2 100644 --- a/app/src/main/java/com/example/citrusclient/models/Book.java +++ b/app/src/main/java/com/example/citrusclient/models/Book.java @@ -1,4 +1,33 @@ package com.example.citrusclient.models; public class Book { + + private int bookId; + private String title; + private boolean publicity; + private String color; + private String accountId; + + + public Book(String accountId, Integer bookId, String title, boolean publicity, String color, String time) { + this.accountId = accountId; + this.bookId = bookId; + this.title = title; + this.publicity = publicity; + this.color = color; + } + + //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;} + + //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;} }