-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocumentModel.java
More file actions
42 lines (34 loc) · 862 Bytes
/
DocumentModel.java
File metadata and controls
42 lines (34 loc) · 862 Bytes
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
class DocumentModel {
private int id;
private String title;
private String author;
private String source;
private String content;
static final String ID = "id";
static final String TITLE = "title";
static final String AUTHOR = "author";
static final String SOURCE = "source";
static final String CONTENT = "content";
DocumentModel(int id, String title, String author, String source, String content) {
this.id = id;
this.title = title;
this.author = author;
this.source = source;
this.content = content;
}
int getId() {
return id;
}
String getTitle() {
return title;
}
String getAuthor() {
return author;
}
String getSource() {
return source;
}
String getContent() {
return content;
}
}