LiveProgramBean.java
5.48 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
package com.cnlive.goldenline.ui.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
/**
* Description:直播节目
* Created on 2017/2/24
* Author : 萧
*/
public class LiveProgramBean implements Serializable, Parcelable {
private String url;
private int videoType;
/**
* 1 直播 2 回放
*/
private int videoTag;
private String title;
private String des;
private int online;
/**
* 1 不显示 间隔线
*/
private int tag;
private String time;
private boolean isBuyTicket;
private Integer ticketPrice;
private TheaterInfoBean theaterInfoBean;
public LiveProgramBean() {
}
public LiveProgramBean(String url, int videoType, int videoTag, String title, String des, int online) {
this.url = url;
this.videoType = videoType;
this.videoTag = videoTag;
this.title = title;
this.des = des;
this.online = online;
}
public LiveProgramBean(String url, int videoType, int videoTag, String title, String des, int online, int tag, String time, boolean isBuyTicket, Integer ticketPrice) {
this.url = url;
this.videoType = videoType;
this.videoTag = videoTag;
this.title = title;
this.des = des;
this.online = online;
this.tag = tag;
this.time = time;
this.isBuyTicket = isBuyTicket;
this.ticketPrice = ticketPrice;
}
public LiveProgramBean(String url, int videoType, int videoTag, String title, String des, int online, int tag, String time, boolean isBuyTicket, Integer ticketPrice, TheaterInfoBean theaterInfoBean) {
this.url = url;
this.videoType = videoType;
this.videoTag = videoTag;
this.title = title;
this.des = des;
this.online = online;
this.tag = tag;
this.time = time;
this.isBuyTicket = isBuyTicket;
this.ticketPrice = ticketPrice;
this.theaterInfoBean = theaterInfoBean;
}
public TheaterInfoBean getTheaterInfoBean() {
return theaterInfoBean;
}
public void setTheaterInfoBean(TheaterInfoBean theaterInfoBean) {
this.theaterInfoBean = theaterInfoBean;
}
public boolean isBuyTicket() {
return isBuyTicket;
}
public void setBuyTicket(boolean buyTicket) {
isBuyTicket = buyTicket;
}
public Integer getTicketPrice() {
return ticketPrice;
}
public void setTicketPrice(Integer ticketPrice) {
this.ticketPrice = ticketPrice;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public int getVideoType() {
return videoType;
}
public void setVideoType(int videoType) {
this.videoType = videoType;
}
public int getVideoTag() {
return videoTag;
}
public void setVideoTag(int videoTag) {
this.videoTag = videoTag;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDes() {
return des;
}
public void setDes(String des) {
this.des = des;
}
public int getOnline() {
return online;
}
public void setOnline(int online) {
this.online = online;
}
public int getTag() {
return tag;
}
public void setTag(int tag) {
this.tag = tag;
}
@Override
public String toString() {
return "LiveProgramBean{" +
"url='" + url + '\'' +
", videoType=" + videoType +
", videoTag=" + videoTag +
", title='" + title + '\'' +
", des='" + des + '\'' +
", online=" + online +
", tag=" + tag +
", time='" + time + '\'' +
", isBuyTicket=" + isBuyTicket +
", ticketPrice=" + ticketPrice +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.url);
dest.writeInt(this.videoType);
dest.writeInt(this.videoTag);
dest.writeString(this.title);
dest.writeString(this.des);
dest.writeInt(this.online);
dest.writeInt(this.tag);
dest.writeString(this.time);
dest.writeByte(this.isBuyTicket ? (byte) 1 : (byte) 0);
dest.writeValue(this.ticketPrice);
}
protected LiveProgramBean(Parcel in) {
this.url = in.readString();
this.videoType = in.readInt();
this.videoTag = in.readInt();
this.title = in.readString();
this.des = in.readString();
this.online = in.readInt();
this.tag = in.readInt();
this.time = in.readString();
this.isBuyTicket = in.readByte() != 0;
this.ticketPrice = (Integer) in.readValue(Integer.class.getClassLoader());
}
public static final Creator<LiveProgramBean> CREATOR = new Creator<LiveProgramBean>() {
@Override
public LiveProgramBean createFromParcel(Parcel source) {
return new LiveProgramBean(source);
}
@Override
public LiveProgramBean[] newArray(int size) {
return new LiveProgramBean[size];
}
};
}