SubscribeRequest.java
1.12 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
package com.cnlive.goldenline.model.request;
import android.os.Parcel;
import android.os.Parcelable;
/**
* 订阅请求
* Created by luxiaoman on 2017/4/12.
*/
public class SubscribeRequest implements Parcelable{
int theaterIds;
String userId;
public SubscribeRequest() {
}
public SubscribeRequest(String userId,int theaterIds) {
this.theaterIds = theaterIds;
this.userId = userId;
}
protected SubscribeRequest(Parcel in) {
theaterIds = in.readInt();
userId = in.readString();
}
public static final Creator<SubscribeRequest> CREATOR = new Creator<SubscribeRequest>() {
@Override
public SubscribeRequest createFromParcel(Parcel in) {
return new SubscribeRequest(in);
}
@Override
public SubscribeRequest[] newArray(int size) {
return new SubscribeRequest[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(theaterIds);
dest.writeString(userId);
}
}