View Javadoc
1   /******************************************************************************
2    * MediaContainer.java - Primary domain object from plex
3    * $Id: Directory.java,v 1.4 2014/10/20 01:13:13 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2014 - Dick Balaska
7    * 
8    * $Log: Directory.java,v $
9    * Revision 1.4  2014/10/20 01:13:13  dick
10   * addedAt and updatedAt are ints (maybe should be longs).
11   *
12   * Revision 1.3  2014/10/17 08:36:44  dick
13   * Add missing parent attributes (from /recentlyAdded).
14   *
15   * Revision 1.2  2014/10/12 07:20:57  dick
16   * Fill out the Directory attributes to handle a TV Show.
17   *
18   * Revision 1.1  2014/10/04 16:17:53  dick
19   * plex domain objects.
20   *
21   */
22  package tv.plex.domain;
23  
24  import java.util.ArrayList;
25  import java.util.Collection;
26  
27  import javax.xml.bind.annotation.XmlAttribute;
28  import javax.xml.bind.annotation.XmlElement;
29  import javax.xml.bind.annotation.XmlRootElement;
30  
31  @XmlRootElement
32  public class Directory {
33  	private	int		addedAt;
34  	private	String	agent;
35  	private	int		allowSync;
36  	private	String	art;
37  	private	String	banner;
38  	private	int		childCount;
39  	private	String	composite;
40  	private	String	contentRating;
41  	private	String	count;
42  	private	String	createdAt;
43  	private	int		duration;
44  	private	String	filters;
45  	private	int		index;
46  	private	String	key;
47  	private	String	language;
48  	private	int		lastViewedAt;
49  	private	int		leafCount;
50  	private	int		librarySectionID;
51  	private	String	librarySectionTitle;
52  	private	String	librarySectionUUID;
53  	private	String	originallyAvailableAt;
54  	private	int		parentIndex;
55  	private	String	parentKey;
56  	private	int		parentRatingKey;
57  	private	String	parentThumb;
58  	private	String	parentTitle;
59  	private	double	rating;
60  	private	int		ratingKey;
61  	private	String	refreshing;
62  	private	String	scanner;
63  	private	int		size;
64  	private	String	studio;
65  	private	String	summary;
66  	private	String	theme;
67  	private	String	thumb;
68  	private	String	title;
69  	private	String	titleSort;
70  	private	String	type;
71  	private	int		updatedAt;
72  	private	String	uuid;
73  	private	int		viewedLeafCount;
74  	private	int		year;
75  	private	Location	location;
76  
77  	Collection<Genre> 		genres = new ArrayList<Genre>();
78  	Collection<Role>		roles = new ArrayList<Role>();
79  	
80  	/**
81  	 * @return the count
82  	 */
83  	@XmlAttribute
84  	public String getCount() {
85  		return count;
86  	}
87  	/**
88  	 * @param count the count to set
89  	 */
90  	public void setCount(String count) {
91  		this.count = count;
92  	}
93  	/**
94  	 * @return the key
95  	 */
96  	@XmlAttribute
97  	public String getKey() {
98  		return key;
99  	}
100 	/**
101 	 * @param key the key to set
102 	 */
103 	public void setKey(String key) {
104 		this.key = key;
105 	}
106 	/**
107 	 * @return the title
108 	 */
109 	@XmlAttribute
110 	public String getTitle() {
111 		return title;
112 	}
113 	/**
114 	 * @param title the title to set
115 	 */
116 	public void setTitle(String title) {
117 		this.title = title;
118 	}
119 	/**
120 	 * @return the allowSync
121 	 */
122 	@XmlAttribute
123 	public int getAllowSync() {
124 		return allowSync;
125 	}
126 	/**
127 	 * @param allowSync the allowSync to set
128 	 */
129 	public void setAllowSync(int allowSync) {
130 		this.allowSync = allowSync;
131 	}
132 	/**
133 	 * @return the art
134 	 */
135 	@XmlAttribute
136 	public String getArt() {
137 		return art;
138 	}
139 	/**
140 	 * @param art the art to set
141 	 */
142 	public void setArt(String art) {
143 		this.art = art;
144 	}
145 	/**
146 	 * @return the filters
147 	 */
148 	@XmlAttribute
149 	public String getFilters() {
150 		return filters;
151 	}
152 	/**
153 	 * @param filters the filters to set
154 	 */
155 	public void setFilters(String filters) {
156 		this.filters = filters;
157 	}
158 	/**
159 	 * @return the refreshing
160 	 */
161 	@XmlAttribute
162 	public String getRefreshing() {
163 		return refreshing;
164 	}
165 	/**
166 	 * @param refreshing the refreshing to set
167 	 */
168 	public void setRefreshing(String refreshing) {
169 		this.refreshing = refreshing;
170 	}
171 	/**
172 	 * @return the thumb
173 	 */
174 	@XmlAttribute
175 	public String getThumb() {
176 		return thumb;
177 	}
178 	/**
179 	 * @param thumb the thumb to set
180 	 */
181 	public void setThumb(String thumb) {
182 		this.thumb = thumb;
183 	}
184 	/**
185 	 * @return the composite
186 	 */
187 	@XmlAttribute
188 	public String getComposite() {
189 		return composite;
190 	}
191 	/**
192 	 * @param composite the composite to set
193 	 */
194 	public void setComposite(String composite) {
195 		this.composite = composite;
196 	}
197 	/**
198 	 * @return the agent
199 	 */
200 	@XmlAttribute
201 	public String getAgent() {
202 		return agent;
203 	}
204 	/**
205 	 * @param agent the agent to set
206 	 */
207 	public void setAgent(String agent) {
208 		this.agent = agent;
209 	}
210 	/**
211 	 * @return the scanner
212 	 */
213 	@XmlAttribute
214 	public String getScanner() {
215 		return scanner;
216 	}
217 	/**
218 	 * @param scanner the scanner to set
219 	 */
220 	public void setScanner(String scanner) {
221 		this.scanner = scanner;
222 	}
223 	/**
224 	 * @return the size
225 	 */
226 	@XmlAttribute
227 	public int getSize() {
228 		return size;
229 	}
230 	/**
231 	 * @param size the size to set
232 	 */
233 	public void setSize(int size) {
234 		this.size = size;
235 	}
236 	/**
237 	 * @return the language
238 	 */
239 	@XmlAttribute
240 	public String getLanguage() {
241 		return language;
242 	}
243 	/**
244 	 * @param language the language to set
245 	 */
246 	public void setLanguage(String language) {
247 		this.language = language;
248 	}
249 	/**
250 	 * @return the uuid
251 	 */
252 	@XmlAttribute
253 	public String getUuid() {
254 		return uuid;
255 	}
256 	/**
257 	 * @param uuid the uuid to set
258 	 */
259 	public void setUuid(String uuid) {
260 		this.uuid = uuid;
261 	}
262 	/**
263 	 * @return the updatedAt
264 	 */
265 	@XmlAttribute
266 	public int getUpdatedAt() {
267 		return updatedAt;
268 	}
269 	/**
270 	 * @param updatedAt the updatedAt to set
271 	 */
272 	public void setUpdatedAt(int updatedAt) {
273 		this.updatedAt = updatedAt;
274 	}
275 	/**
276 	 * @return the createdAt
277 	 */
278 	@XmlAttribute
279 	public String getCreatedAt() {
280 		return createdAt;
281 	}
282 	/**
283 	 * @param createdAt the createdAt to set
284 	 */
285 	public void setCreatedAt(String createdAt) {
286 		this.createdAt = createdAt;
287 	}
288 	/**
289 	 * @return the location
290 	 */
291 	@XmlElement
292 	public Location getLocation() {
293 		return location;
294 	}
295 	/**
296 	 * @param location the location to set
297 	 */
298 	public void setLocation(Location location) {
299 		this.location = location;
300 	}
301 
302 	/**
303 	 * @return the addedAt
304 	 */
305 	@XmlAttribute
306 	public int getAddedAt() {
307 		return addedAt;
308 	}
309 	/**
310 	 * @param addedAt the addedAt to set
311 	 */
312 	public void setAddedAt(int addedAt) {
313 		this.addedAt = addedAt;
314 	}
315 	/**
316 	 * @return the banner
317 	 */
318 	@XmlAttribute
319 	public String getBanner() {
320 		return banner;
321 	}
322 	/**
323 	 * @param banner the banner to set
324 	 */
325 	public void setBanner(String banner) {
326 		this.banner = banner;
327 	}
328 	/**
329 	 * @return the childCount
330 	 */
331 	@XmlAttribute
332 	public int getChildCount() {
333 		return childCount;
334 	}
335 	/**
336 	 * @param childCount the childCount to set
337 	 */
338 	public void setChildCount(int childCount) {
339 		this.childCount = childCount;
340 	}
341 	/**
342 	 * @return the contentRating
343 	 */
344 	@XmlAttribute
345 	public String getContentRating() {
346 		return contentRating;
347 	}
348 	/**
349 	 * @param contentRating the contentRating to set
350 	 */
351 	public void setContentRating(String contentRating) {
352 		this.contentRating = contentRating;
353 	}
354 	/**
355 	 * @return the duration
356 	 */
357 	@XmlAttribute
358 	public int getDuration() {
359 		return duration;
360 	}
361 	/**
362 	 * @param duration the duration to set
363 	 */
364 	public void setDuration(int duration) {
365 		this.duration = duration;
366 	}
367 	/**
368 	 * @return the index
369 	 */
370 	@XmlAttribute
371 	public int getIndex() {
372 		return index;
373 	}
374 	/**
375 	 * @param index the index to set
376 	 */
377 	public void setIndex(int index) {
378 		this.index = index;
379 	}
380 	/**
381 	 * @return the lastViewedAt
382 	 */
383 	@XmlAttribute
384 	public int getLastViewedAt() {
385 		return lastViewedAt;
386 	}
387 	/**
388 	 * @param lastViewedAt the lastViewedAt to set
389 	 */
390 	public void setLastViewedAt(int lastViewedAt) {
391 		this.lastViewedAt = lastViewedAt;
392 	}
393 	/**
394 	 * @return the leafCount
395 	 */
396 	@XmlAttribute
397 	public int getLeafCount() {
398 		return leafCount;
399 	}
400 	/**
401 	 * @param leafCount the leafCount to set
402 	 */
403 	public void setLeafCount(int leafCount) {
404 		this.leafCount = leafCount;
405 	}
406 	/**
407 	 * @return the originallyAvailableAt
408 	 */
409 	@XmlAttribute
410 	public String getOriginallyAvailableAt() {
411 		return originallyAvailableAt;
412 	}
413 	/**
414 	 * @param originallyAvailableAt the originallyAvailableAt to set
415 	 */
416 	public void setOriginallyAvailableAt(String originallyAvailableAt) {
417 		this.originallyAvailableAt = originallyAvailableAt;
418 	}
419 	/**
420 	 * @return the rating
421 	 */
422 	@XmlAttribute
423 	public double getRating() {
424 		return rating;
425 	}
426 	/**
427 	 * @param rating the rating to set
428 	 */
429 	public void setRating(double rating) {
430 		this.rating = rating;
431 	}
432 	/**
433 	 * @return the ratingKey
434 	 */
435 	@XmlAttribute
436 	public int getRatingKey() {
437 		return ratingKey;
438 	}
439 	/**
440 	 * @param ratingKey the ratingKey to set
441 	 */
442 	public void setRatingKey(int ratingKey) {
443 		this.ratingKey = ratingKey;
444 	}
445 	/**
446 	 * @return the studio
447 	 */
448 	@XmlAttribute
449 	public String getStudio() {
450 		return studio;
451 	}
452 	/**
453 	 * @param studio the studio to set
454 	 */
455 	public void setStudio(String studio) {
456 		this.studio = studio;
457 	}
458 	/**
459 	 * @return the summary
460 	 */
461 	@XmlAttribute
462 	public String getSummary() {
463 		return summary;
464 	}
465 	/**
466 	 * @param summary the summary to set
467 	 */
468 	public void setSummary(String summary) {
469 		this.summary = summary;
470 	}
471 	/**
472 	 * @return the theme
473 	 */
474 	@XmlAttribute
475 	public String getTheme() {
476 		return theme;
477 	}
478 	/**
479 	 * @param theme the theme to set
480 	 */
481 	public void setTheme(String theme) {
482 		this.theme = theme;
483 	}
484 	/**
485 	 * @return the titleSort
486 	 */
487 	@XmlAttribute
488 	public String getTitleSort() {
489 		return titleSort;
490 	}
491 	/**
492 	 * @param titleSort the titleSort to set
493 	 */
494 	public void setTitleSort(String titleSort) {
495 		this.titleSort = titleSort;
496 	}
497 	/**
498 	 * @return the type
499 	 */
500 	@XmlAttribute
501 	public String getType() {
502 		return type;
503 	}
504 	/**
505 	 * @param type the type to set
506 	 */
507 	public void setType(String type) {
508 		this.type = type;
509 	}
510 	/**
511 	 * @return the viewedLeafCount
512 	 */
513 	@XmlAttribute
514 	public int getViewedLeafCount() {
515 		return viewedLeafCount;
516 	}
517 	/**
518 	 * @param viewedLeafCount the viewedLeafCount to set
519 	 */
520 	public void setViewedLeafCount(int viewedLeafCount) {
521 		this.viewedLeafCount = viewedLeafCount;
522 	}
523 	/**
524 	 * @return the year
525 	 */
526 	@XmlAttribute
527 	public int getYear() {
528 		return year;
529 	}
530 	/**
531 	 * @param year the year to set
532 	 */
533 	public void setYear(int year) {
534 		this.year = year;
535 	}
536 	/**
537 	 * @return the genres
538 	 */
539 	public Collection<Genre> getGenres() {
540 		return genres;
541 	}
542 	/**
543 	 * @param genres the genres to set
544 	 */
545 	@XmlElement(name = "Genre")
546 	public void setGenres(Collection<Genre> genres) {
547 		this.genres = genres;
548 	}
549 	/**
550 	 * @return the roles
551 	 */
552 	public Collection<Role> getRoles() {
553 		return roles;
554 	}
555 	/**
556 	 * @param roles the roles to set
557 	 */
558 	@XmlElement(name = "Role")
559 	public void setRoles(Collection<Role> roles) {
560 		this.roles = roles;
561 	}
562 	/**
563 	 * @return the librarySectionID
564 	 */
565 	@XmlAttribute
566 	public int getLibrarySectionID() {
567 		return librarySectionID;
568 	}
569 	/**
570 	 * @param librarySectionID the librarySectionID to set
571 	 */
572 	public void setLibrarySectionID(int librarySectionID) {
573 		this.librarySectionID = librarySectionID;
574 	}
575 	/**
576 	 * @return the librarySectionTitle
577 	 */
578 	@XmlAttribute
579 	public String getLibrarySectionTitle() {
580 		return librarySectionTitle;
581 	}
582 	/**
583 	 * @param librarySectionTitle the librarySectionTitle to set
584 	 */
585 	public void setLibrarySectionTitle(String librarySectionTitle) {
586 		this.librarySectionTitle = librarySectionTitle;
587 	}
588 	/**
589 	 * @return the librarySectionUUID
590 	 */
591 	@XmlAttribute
592 	public String getLibrarySectionUUID() {
593 		return librarySectionUUID;
594 	}
595 	/**
596 	 * @param librarySectionUUID the librarySectionUUID to set
597 	 */
598 	public void setLibrarySectionUUID(String librarySectionUUID) {
599 		this.librarySectionUUID = librarySectionUUID;
600 	}
601 	/**
602 	 * @return the parentIndex
603 	 */
604 	@XmlAttribute
605 	public int getParentIndex() {
606 		return parentIndex;
607 	}
608 	/**
609 	 * @param parentIndex the parentIndex to set
610 	 */
611 	public void setParentIndex(int parentIndex) {
612 		this.parentIndex = parentIndex;
613 	}
614 	/**
615 	 * @return the parentKey
616 	 */
617 	@XmlAttribute
618 	public String getParentKey() {
619 		return parentKey;
620 	}
621 	/**
622 	 * @param parentKey the parentKey to set
623 	 */
624 	public void setParentKey(String parentKey) {
625 		this.parentKey = parentKey;
626 	}
627 	/**
628 	 * @return the parentRatingKey
629 	 */
630 	@XmlAttribute
631 	public int getParentRatingKey() {
632 		return parentRatingKey;
633 	}
634 	/**
635 	 * @param parentRatingKey the parentRatingKey to set
636 	 */
637 	public void setParentRatingKey(int parentRatingKey) {
638 		this.parentRatingKey = parentRatingKey;
639 	}
640 	/**
641 	 * @return the parentThumb
642 	 */
643 	@XmlAttribute
644 	public String getParentThumb() {
645 		return parentThumb;
646 	}
647 	/**
648 	 * @param parentThumb the parentThumb to set
649 	 */
650 	public void setParentThumb(String parentThumb) {
651 		this.parentThumb = parentThumb;
652 	}
653 	/**
654 	 * @return the parentTitle
655 	 */
656 	@XmlAttribute
657 	public String getParentTitle() {
658 		return parentTitle;
659 	}
660 	/**
661 	 * @param parentTitle the parentTitle to set
662 	 */
663 	public void setParentTitle(String parentTitle) {
664 		this.parentTitle = parentTitle;
665 	}
666 
667 
668 }