-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNote.java
More file actions
131 lines (101 loc) · 3.11 KB
/
Note.java
File metadata and controls
131 lines (101 loc) · 3.11 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package com.augmentum.note.model;
import android.provider.BaseColumns;
import java.util.Calendar;
public class Note {
public static final int NO_PARENT = -1;
public static final int TYPE_NOTE = 1;
public static final int TYPE_FOLDER = 2;
public static final int ENTER_DESKTOP_FLAG_FALSE = 0;
public static final int ENTER_DESKTOP_FLAG_TRUE = 1;
private int mId;
private int mType;
private int mColor;
private int mEnterDesktopFlag;
private int mParentId;
private int mWidgetId;
private Calendar mCreateTime;
private Calendar mModifyTime;
private Calendar mAlertTime;
private String mContent;
private String mSubject;
public Note(){}
public int getId() {
return mId;
}
public void setId(int id) {
mId = id;
}
public int getType() {
return mType;
}
public void setType(int type) {
mType = type;
}
public int getColor() {
return mColor;
}
public void setColor(int color) {
mColor = color;
}
public int getEnterDesktopFlag() {
return mEnterDesktopFlag;
}
public void setEnterDesktopFlag(int enterDesktopFlag) {
mEnterDesktopFlag = enterDesktopFlag;
}
public int getParentId() {
return mParentId;
}
public void setParentId(int parentId) {
mParentId = parentId;
}
public int getWidgetId() {
return mWidgetId;
}
public void setWidgetId(int widgetId) {
mWidgetId = widgetId;
}
public Calendar getCreateTime() {
return mCreateTime;
}
public void setCreateTime(Calendar createTime) {
mCreateTime = createTime;
}
public Calendar getModifyTime() {
return mModifyTime;
}
public void setModifyTime(Calendar modifyTime) {
mModifyTime = modifyTime;
}
public Calendar getAlertTime() {
return mAlertTime;
}
public void setAlertTime(Calendar alertTime) {
mAlertTime = alertTime;
}
public String getContent() {
return mContent;
}
public void setContent(String content) {
mContent = content;
}
public String getSubject() {
return mSubject;
}
public void setSubject(String subject) {
mSubject = subject;
}
public static abstract class NoteEntry implements BaseColumns {
public static final String TABLE_NAME = "note";
public static final String COLUMN_NAME_TYPE = "type";
public static final String COLUMN_NAME_COLOR = "color";
public static final String COLUMN_NAME_PARENT_ID = "parent_id";
public static final String COLUMN_NAME_widget_ID = "widget_id";
public static final String COLUMN_NAME_ENTER_DESKTOP_FLAG = "enter_desktop_flag";
public static final String COLUMN_NAME_CREATE_TIME = "create_time";
public static final String COLUMN_NAME_MODIFY_TIME = "modify_time";
public static final String COLUMN_NAME_ALERT_TIME = "alert_time";
public static final String COLUMN_NAME_CONTENT = "content";
public static final String COLUMN_NAME_SUBJECT = "subject";
}
}