-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToDoList.java
98 lines (74 loc) · 1.97 KB
/
ToDoList.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.mathur.android.listit;
import java.util.Date;
/**
* Created by us48114 on 11/13/2015.
*/
public class ToDoList {
int id;
String mName;
String mStatus;
String mOperationType;
Integer mServerKey;
Integer mSyncStatus;
Date LastUpdated;
ToDoList() {
}
ToDoList(int listId, String name, String status) {
this.id = listId;
this.mName = name;
this.mStatus = status;
}
public Date getLastUpdated() {
return LastUpdated;
}
public void setLastUpdated(Date lastUpdated) {
LastUpdated = lastUpdated;
}
public Integer GetSyncStatus() {
return mSyncStatus;
}
public void SetSyncStatus(Integer mSyncStatus) {
this.mSyncStatus = mSyncStatus;
}
public Integer GetServerKey() {
return mServerKey;
}
public void SetServerKey(Integer mServerKey) {
this.mServerKey = mServerKey;
}
public String GetOperationType() {
return mOperationType;
}
public void SetOperationType(String mOperationType) {
this.mOperationType = mOperationType;
}
public String getName() {
return this.mName;
}
public void setName(String desc) {
this.mName = desc;
}
public String getStatus() {
return this.mStatus;
}
public void setStatus(String stat) {
this.mStatus = stat;
}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public boolean IsStatusChecked() {
if (new String("true").equals(mStatus)) {
return true;
}
return false;
}
@Override
public String toString() {
return "ToDoListItems [id=" + id + ", name=" + mName + ", status=" + mStatus
+ ", SyncStatus= " + mSyncStatus + "LastUpdated= " + LastUpdated + "]";
}
}