-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathArticle.java
More file actions
57 lines (46 loc) · 1.19 KB
/
Article.java
File metadata and controls
57 lines (46 loc) · 1.19 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
package model;
public class Article {
private Long id;
private Long creatorId;
private String writerName;
private String title;
private String content;
private String imageUrl;
public Article(Long id, Long creatorId, String title, String content, String imageUrl) {
this.id = id;
this.creatorId = creatorId;
this.title = title;
this.content = content;
this.imageUrl = imageUrl;
}
public Article(Long creatorId, String title, String content, String imageUrl) {
this.creatorId = creatorId;
this.title = title;
this.content = content;
this.imageUrl = imageUrl;
}
public Long getId() {
return id;
}
public long getCreatorId() {
return creatorId;
}
public String getTitle() {
return title;
}
public String getWriterName() {
return writerName;
}
public String getContent() {
return content;
}
public String getImageUrl() {
return imageUrl;
}
public void setId(Long id) {
this.id = id;
}
public void setWriterName(String creatorName) {
this.writerName = creatorName;
}
}