1 package com.guinetik.examples;
2
3
4
5
6 public class Todo {
7 private int userId;
8 private int id;
9 private String title;
10 private boolean completed;
11
12
13 public Todo() {
14 }
15
16 public Todo(int userId, int id, String title, boolean completed) {
17 this.userId = userId;
18 this.id = id;
19 this.title = title;
20 this.completed = completed;
21 }
22
23 public int getUserId() {
24 return userId;
25 }
26
27 public void setUserId(int userId) {
28 this.userId = userId;
29 }
30
31 public int getId() {
32 return id;
33 }
34
35 public void setId(int id) {
36 this.id = id;
37 }
38
39 public String getTitle() {
40 return title;
41 }
42
43 public void setTitle(String title) {
44 this.title = title;
45 }
46
47 public boolean isCompleted() {
48 return completed;
49 }
50
51 public void setCompleted(boolean completed) {
52 this.completed = completed;
53 }
54
55 @Override
56 public String toString() {
57 return "Todo{" +
58 "userId=" + userId +
59 ", id=" + id +
60 ", title='" + title + '\'' +
61 ", completed=" + completed +
62 '}';
63 }
64 }