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 package tv.plex.domain;
29
30 import java.util.ArrayList;
31 import java.util.Collection;
32
33 import javax.xml.bind.annotation.XmlAttribute;
34 import javax.xml.bind.annotation.XmlElement;
35 import javax.xml.bind.annotation.XmlRootElement;
36
37
38
39
40
41 @XmlRootElement(name="Video")
42 public class Video {
43 private int addedAt;
44 private String art;
45 private String contentRating;
46 private int duration;
47 private String key;
48 private String originallyAvailableAt;
49 private int ratingKey;
50 private String studio;
51 private String summary;
52 private String tagline;
53 private String thumb;
54 private String title;
55 private String titleSort;
56 private String type;
57 private int updatedAt;
58 private String year;
59
60
61
62 Collection<Genre> genres = new ArrayList<Genre>();
63 Collection<Writer> writers = new ArrayList<Writer>();
64 Collection<Director> directors = new ArrayList<Director>();
65 Collection<Role> roles = new ArrayList<Role>();
66
67
68
69
70 @XmlAttribute
71 public String getKey() {
72 return key;
73 }
74
75
76
77 public void setKey(String key) {
78 this.key = key;
79 }
80
81
82
83 @XmlAttribute
84 public int getRatingKey() {
85 return ratingKey;
86 }
87
88
89
90 public void setRatingKey(int ratingKey) {
91 this.ratingKey = ratingKey;
92 }
93
94
95
96 @XmlAttribute
97 public String getType() {
98 return type;
99 }
100
101
102
103 public void setType(String type) {
104 this.type = type;
105 }
106
107
108
109 @XmlAttribute
110 public String getTitle() {
111 return title;
112 }
113
114
115
116 public void setTitle(String title) {
117 this.title = title;
118 }
119
120
121
122 @XmlAttribute
123 public String getTitleSort() {
124 return titleSort;
125 }
126
127
128
129 public void setTitleSort(String titleSort) {
130 this.titleSort = titleSort;
131 }
132
133
134
135 @XmlAttribute
136 public String getSummary() {
137 return summary;
138 }
139
140
141
142 public void setSummary(String summary) {
143 this.summary = summary;
144 }
145
146
147
148 @XmlAttribute
149 public String getYear() {
150 return year;
151 }
152
153
154
155 public void setYear(String year) {
156 this.year = year;
157 }
158
159
160
161 @XmlAttribute
162 public String getThumb() {
163 return thumb;
164 }
165
166
167
168 public void setThumb(String thumb) {
169 this.thumb = thumb;
170 }
171
172
173
174 @XmlAttribute
175 public String getArt() {
176 return art;
177 }
178
179
180
181 public void setArt(String art) {
182 this.art = art;
183 }
184
185
186
187 @XmlAttribute
188 public int getDuration() {
189 return duration;
190 }
191
192
193
194 public void setDuration(int duration) {
195 this.duration = duration;
196 }
197
198
199
200 @XmlAttribute
201 public String getOriginallyAvailableAt() {
202 return originallyAvailableAt;
203 }
204
205
206
207 public void setOriginallyAvailableAt(String originallyAvailableAt) {
208 this.originallyAvailableAt = originallyAvailableAt;
209 }
210
211
212
213 @XmlAttribute
214 public int getAddedAt() {
215 return addedAt;
216 }
217
218
219
220 public void setAddedAt(int addedAt) {
221 this.addedAt = addedAt;
222 }
223
224
225
226 @XmlAttribute
227 public int getUpdatedAt() {
228 return updatedAt;
229 }
230
231
232
233 public void setUpdatedAt(int updatedAt) {
234 this.updatedAt = updatedAt;
235 }
236
237
238
239 @XmlAttribute
240 public String getContentRating() {
241 return contentRating;
242 }
243
244
245
246 public void setContentRating(String contentRating) {
247 this.contentRating = contentRating;
248 }
249
250
251
252 @XmlAttribute
253 public String getStudio() {
254 return studio;
255 }
256
257
258
259 public void setStudio(String studio) {
260 this.studio = studio;
261 }
262
263
264
265 @XmlAttribute
266 public String getTagline() {
267 return tagline;
268 }
269
270
271
272 public void setTagline(String tagline) {
273 this.tagline = tagline;
274 }
275
276
277
278 @XmlElement(name = "Genre")
279 public Collection<Genre> getGenres() {
280 return genres;
281 }
282
283
284
285 public void setGenres(Collection<Genre> genres) {
286 this.genres = genres;
287 }
288
289
290
291 @XmlElement(name = "Writer")
292 public Collection<Writer> getWriters() {
293 return writers;
294 }
295
296
297
298 public void setWriters(Collection<Writer> writers) {
299 this.writers = writers;
300 }
301
302
303
304 @XmlElement(name = "Director")
305 public Collection<Director> getDirectors() {
306 return directors;
307 }
308
309
310
311 public void setDirectors(Collection<Director> directors) {
312 this.directors = directors;
313 }
314
315
316
317 @XmlElement(name = "Role")
318 public Collection<Role> getRoles() {
319 return roles;
320 }
321
322
323
324 public void setRoles(Collection<Role> roles) {
325 this.roles = roles;
326 }
327
328 }