PlayBackBean.java
3.69 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
package com.cnlive.goldenline.ui.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import java.io.Serializable;
/**
* Description:
* Created on 2017/2/25
* Author : 萧
*/
public class PlayBackBean implements Serializable, Parcelable {
private String url;
/**
* 1 相声 2 音乐剧 3 评书
*/
private int videoType;
/**
* 1 直播 2 回放
*/
private int videoTag;
private String title;
private String des;
private int online;
/**
* 1 不显示 间隔线
*/
private int tag;
private String time;
public PlayBackBean() {
}
public PlayBackBean(String url, int videoType, int videoTag, String title, String des, int online, int tag, String time) {
this.url = url;
this.videoType = videoType;
this.videoTag = videoTag;
this.title = title;
this.des = des;
this.online = online;
this.tag = tag;
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;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
@NonNull
@Override
public String toString() {
return "PlayBackBean{" +
"url='" + url + '\'' +
", videoType=" + videoType +
", videoTag=" + videoTag +
", title='" + title + '\'' +
", des='" + des + '\'' +
", online=" + online +
", tag=" + tag +
", time='" + time + '\'' +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(@NonNull 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);
}
protected PlayBackBean(@NonNull 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();
}
public static final Parcelable.Creator<PlayBackBean> CREATOR = new Parcelable.Creator<PlayBackBean>() {
@NonNull
@Override
public PlayBackBean createFromParcel(@NonNull Parcel source) {
return new PlayBackBean(source);
}
@NonNull
@Override
public PlayBackBean[] newArray(int size) {
return new PlayBackBean[size];
}
};
}