CommentBean.java
4.1 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
package com.cnlive.goldenline.ui.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
import java.util.List;
/**
* Description:
* Created on 2017/3/5
* Author : 萧
*/
public class CommentBean implements Serializable, Parcelable {
private String userHead;
private String userName;
private String time;
private String commentContent;
private String praise;
private int replyNum;
private String id;
private int isPraised;
private List<ReplyBean> replyList;
public CommentBean() {
}
public CommentBean(String userHead, String userName, String time, String commentContent, String praise, int replyNum, String id, int isPraised, List<ReplyBean> replyList) {
this.userHead = userHead;
this.userName = userName;
this.time = time;
this.commentContent = commentContent;
this.praise = praise;
this.replyNum = replyNum;
this.id = id;
this.replyList = replyList;
this.isPraised = isPraised;
}
public String getUserHead() {
return userHead;
}
public void setUserHead(String userHead) {
this.userHead = userHead;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getCommentContent() {
return commentContent;
}
public void setCommentContent(String commentContent) {
this.commentContent = commentContent;
}
public String getPraise() {
return praise;
}
public void setPraise(String praise) {
this.praise = praise;
}
public int isPraised() {
return isPraised;
}
public void setPraised(int praised) {
isPraised = praised;
}
public int getReplyNum() {
return replyNum;
}
public void setReplyNum(int replyNum) {
this.replyNum = replyNum;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public List<ReplyBean> getReplyList() {
return replyList;
}
public void setReplyList(List<ReplyBean> replyList) {
this.replyList = replyList;
}
@Override
public String toString() {
return "CommentBean{" +
"userHead='" + userHead + '\'' +
", userName='" + userName + '\'' +
", time='" + time + '\'' +
", commentContent='" + commentContent + '\'' +
", praise=" + praise +
", replyNum=" + replyNum +
", id=" + id +
", replyList=" + replyList +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.userHead);
dest.writeString(this.userName);
dest.writeString(this.time);
dest.writeString(this.commentContent);
dest.writeString(this.praise);
dest.writeInt(this.replyNum);
dest.writeString(this.id);
dest.writeTypedList(this.replyList);
dest.writeInt(this.isPraised);
}
protected CommentBean(Parcel in) {
this.userHead = in.readString();
this.userName = in.readString();
this.time = in.readString();
this.commentContent = in.readString();
this.praise = in.readString();
this.replyNum = in.readInt();
this.id = in.readString();
this.replyList = in.createTypedArrayList(ReplyBean.CREATOR);
this.isPraised = in.readInt();
}
public static final Parcelable.Creator<CommentBean> CREATOR = new Parcelable.Creator<CommentBean>() {
@Override
public CommentBean createFromParcel(Parcel source) {
return new CommentBean(source);
}
@Override
public CommentBean[] newArray(int size) {
return new CommentBean[size];
}
};
}