Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. public class TodoRecord {
  2.  
  3. @SerializedName("id")
  4. Integer id;
  5.  
  6. @SerializedName("title")
  7. String title;
  8.  
  9. @SerializedName("user_id")
  10. Integer userId;
  11.  
  12. @SerializedName("completed")
  13. Boolean completed;
  14.  
  15. public TodoRecord(String title, Integer userId, Boolean completed) {
  16. this.title = title;
  17. this.userId = userId;
  18. this.completed = completed;
  19. }
  20.  
  21. public Integer getId() {
  22. return id;
  23. }
  24.  
  25. public void setId(Integer id) {
  26. this.id = id;
  27. }
  28.  
  29. public String getTitle() {
  30. return title;
  31. }
  32.  
  33. public void setTitle(String title) {
  34. this.title = title;
  35. }
  36.  
  37. public Integer getUserId() {
  38. return userId;
  39. }
  40.  
  41. public void setUserId(Integer userId) {
  42. this.userId = userId;
  43. }
  44.  
  45. public Boolean getCompleted() {
  46. return completed;
  47. }
  48.  
  49. public void setCompleted(Boolean completed) {
  50. this.completed = completed;
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement