AllSubscribeRequest.java
1.85 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
package com.cnlive.goldenline.model.request;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by luxiaoman on 2017/4/11.
*/
public class AllSubscribeRequest implements Parcelable {
int type;
int page;
String vdCategoryId;
String vdCategory;
String userId;
public AllSubscribeRequest() {
}
public AllSubscribeRequest(int type, int page, String vdCategoryId, String vdCategory, String userId) {
this.type = type;
this.page = page;
this.vdCategoryId = vdCategoryId;
this.vdCategory = vdCategory;
this.userId = userId;
}
protected AllSubscribeRequest(Parcel in) {
type = in.readInt();
page = in.readInt();
vdCategoryId=in.readString();
vdCategory=in.readString();
userId=in.readString();
}
public static final Creator<AllSubscribeRequest> CREATOR = new Creator<AllSubscribeRequest>() {
@Override
public AllSubscribeRequest createFromParcel(Parcel in) {
return new AllSubscribeRequest(in);
}
@Override
public AllSubscribeRequest[] newArray(int size) {
return new AllSubscribeRequest[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(type);
dest.writeInt(page);
dest.writeString(vdCategoryId);
dest.writeString(vdCategory);
dest.writeString(userId);
}
@Override
public String toString() {
return "AllSubscribeRequest{" +
"type=" + type +
", page=" + page +
", vdCategoryId='" + vdCategoryId + '\'' +
", vdCategory='" + vdCategory + '\'' +
", userId='" + userId + '\'' +
'}';
}
}