CommentTitleBean.java
1.81 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
package com.cnlive.goldenline.ui.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
/**
* Description:
* Created on 2017/3/6
* Author : 萧
*/
public class CommentTitleBean implements Serializable, Parcelable {
private int commentNums;
private String userPortrait;
public CommentTitleBean() {
}
public CommentTitleBean(int commentNums, String userPortrait) {
this.commentNums = commentNums;
this.userPortrait = userPortrait;
}
public int getCommentNums() {
return commentNums;
}
public void setCommentNums(int commentNums) {
this.commentNums = commentNums;
}
public String getUserPortrait() {
return userPortrait;
}
public void setUserPortrait(String userPortrait) {
this.userPortrait = userPortrait;
}
@Override
public String toString() {
return "CommentTitleBean{" +
"commentNums=" + commentNums +
", userPortrait='" + userPortrait + '\'' +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.commentNums);
dest.writeString(this.userPortrait);
}
protected CommentTitleBean(Parcel in) {
this.commentNums = in.readInt();
this.userPortrait = in.readString();
}
public static final Parcelable.Creator<CommentTitleBean> CREATOR = new Parcelable.Creator<CommentTitleBean>() {
@Override
public CommentTitleBean createFromParcel(Parcel source) {
return new CommentTitleBean(source);
}
@Override
public CommentTitleBean[] newArray(int size) {
return new CommentTitleBean[size];
}
};
}