forked from fanchaoo/hahu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnswer.java
More file actions
117 lines (86 loc) · 2.29 KB
/
Answer.java
File metadata and controls
117 lines (86 loc) · 2.29 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
package com.fc.model;
import java.util.List;
public class Answer {
private Integer answerId;
private String answerContent;
private Integer likedCount;
private Long createTime;
private Integer questionId;
private Integer userId;
private Question question;
private User user;
private String likeState;
private Integer commentCount;
private List<AnswerComment> answerCommentList;
public Integer getAnswerId() {
return answerId;
}
public void setAnswerId(Integer answerId) {
this.answerId = answerId;
}
public String getAnswerContent() {
return answerContent;
}
public void setAnswerContent(String answerContent) {
this.answerContent = answerContent;
}
public Integer getLikedCount() {
return likedCount;
}
public void setLikedCount(Integer likedCount) {
this.likedCount = likedCount;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Integer getQuestionId() {
return questionId;
}
public void setQuestionId(Integer questionId) {
this.questionId = questionId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public List<AnswerComment> getAnswerCommentList() {
return answerCommentList;
}
public void setAnswerCommentList(List<AnswerComment> answerCommentList) {
this.answerCommentList = answerCommentList;
}
public Question getQuestion() {
return question;
}
public void setQuestion(Question question) {
this.question = question;
}
public String getLikeState() {
return likeState;
}
public void setLikeState(String likeState) {
this.likeState = likeState;
}
public Integer getCommentCount() {
return commentCount;
}
public void setCommentCount(Integer commentCount) {
this.commentCount = commentCount;
}
@Override
public String toString() {
return "Answer [answerId=" + answerId + ", answerContent=" + answerContent + ", likedCount=" + likedCount + ", createTime=" + createTime + ", questionId=" + questionId + ", userId=" + userId + ", question=" + question + ", user=" + user + ", likeState=" + likeState + ", answerCommentList="
+ answerCommentList + "]";
}
}