BaseData.java
3.46 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
package com.gimi.common.cinema.model;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Data provide foundation class(photo Music Video Other search).
*/
public class BaseData implements Parcelable {
private String name;
private String path;
private long duration;
private int doubanId;
private String doubanUrl;
private String posterUrl;
private long lastPlayPosition;
private long lastPlayTime;
public BaseData() {
}
public int getDoubanId() {
return doubanId;
}
public void setDoubanId(int doubanId) {
this.doubanId = doubanId;
}
public String getDoubanUrl() {
return doubanUrl;
}
public void setDoubanUrl(String doubanUrl) {
this.doubanUrl = doubanUrl;
}
public String getPosterUrl() {
return posterUrl;
}
public void setPosterUrl(String posterUrl) {
this.posterUrl = posterUrl;
}
public long getLastPlayPosition() {
return lastPlayPosition;
}
public void setLastPlayPosition(long lastPlayPosition) {
this.lastPlayPosition = lastPlayPosition;
}
public long getLastPlayTime() {
return lastPlayTime;
}
public void setLastPlayTime(long lastPlayTime) {
this.lastPlayTime = lastPlayTime;
}
public void setDuration(long duration) {
this.duration = duration;
}
public long getDuration() {
return duration;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the path
*/
public String getPath() {
return path;
}
/**
* @param path the path to set
*/
public void setPath(String path) {
this.path = path;
}
@Override
public String toString() {
return "BaseData{" +
"name='" + name + '\'' +
", path='" + path + '\'' +
", duration=" + duration +
", doubanId=" + doubanId +
", doubanUrl='" + doubanUrl + '\'' +
", posterUrl='" + posterUrl + '\'' +
", lastPlayPosition=" + lastPlayPosition +
", lastPlayTime=" + lastPlayTime +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeString(this.path);
dest.writeLong(this.duration);
dest.writeInt(this.doubanId);
dest.writeString(this.doubanUrl);
dest.writeString(this.posterUrl);
dest.writeLong(this.lastPlayPosition);
dest.writeLong(this.lastPlayTime);
}
protected BaseData(Parcel in) {
this.name = in.readString();
this.path = in.readString();
this.duration = in.readLong();
this.doubanId = in.readInt();
this.doubanUrl = in.readString();
this.posterUrl = in.readString();
this.lastPlayPosition = in.readLong();
this.lastPlayTime = in.readLong();
}
public static final Creator<BaseData> CREATOR = new Creator<BaseData>() {
public BaseData createFromParcel(Parcel source) {
return new BaseData(source);
}
public BaseData[] newArray(int size) {
return new BaseData[size];
}
};
}