Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / models / Book.java
t-watanabe on 25 Jun 1 KB Bookを修正
  1. package com.example.citrusclient.models;
  2.  
  3. public class Book {
  4.  
  5. private int bookId;
  6. private String title;
  7. private boolean publicity;
  8. private String color;
  9. private String accountId;
  10. private String time;
  11.  
  12.  
  13. public Book(String accountId, Integer bookId, String title, boolean publicity, String color) {
  14. this.accountId = accountId;
  15. this.bookId = bookId;
  16. this.title = title;
  17. this.publicity = publicity;
  18. this.color = color;
  19. }
  20.  
  21. public Book(){
  22.  
  23. }
  24.  
  25. //Setter
  26. public void setTitle(String t) {title = t;}
  27. public void setPublicity(boolean p) {publicity = p;}
  28. public void setColor(String c) {color = c;}
  29. public void setBookId(int id) {bookId = id;}
  30. public void setAccountId(String a) {accountId = a;}
  31. public void setTime(String ti) {time = ti;}
  32.  
  33. //Getter
  34. public String getTitle() {return title;}
  35. public boolean getPublicity() {return publicity;}
  36. public String getColor() {return color;}
  37. public int getBookId() {return bookId;}
  38. public String getAccountId() {return accountId;}
  39. public String getTime() {return time;}
  40. }