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