View Javadoc
1   /******************************************************************************
2    * Video.java - One video object from plex
3    * $Id: Video.java,v 1.6 2015/05/11 17:52:58 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2014 - Dick Balaska
7    * 
8    * $Log: Video.java,v $
9    * Revision 1.6  2015/05/11 17:52:58  dick
10   * Better alpha sorting. VideoBase gets a sortIndex which is derived from Video's sortTitle.
11   *
12   * Revision 1.5  2015/03/25 06:31:42  dick
13   * Spell tagline correctly.
14   *
15   * Revision 1.4  2014/10/31 06:56:17  dick
16   * duration is an int, not a string.
17   *
18   * Revision 1.3  2014/10/20 01:13:13  dick
19   * addedAt and updatedAt are ints (maybe should be longs).
20   *
21   * Revision 1.2  2014/10/12 07:21:46  dick
22   * Add the rest of the Video attributes.
23   *
24   * Revision 1.1  2014/10/08 04:41:44  dick
25   * Define a Video from Plex.
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  /** Define one Video from plex.
38   * @author dick
39   * @since 2014-10-07
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  	// XXX: Ignore Media for now (maybe forever)
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  	 * @return the key
69  	 */
70  	@XmlAttribute
71  	public String getKey() {
72  		return key;
73  	}
74  	/**
75  	 * @param key the key to set
76  	 */
77  	public void setKey(String key) {
78  		this.key = key;
79  	}
80  	/**
81  	 * @return the ratingKey
82  	 */
83  	@XmlAttribute
84  	public int getRatingKey() {
85  		return ratingKey;
86  	}
87  	/**
88  	 * @param ratingKey the ratingKey to set
89  	 */
90  	public void setRatingKey(int ratingKey) {
91  		this.ratingKey = ratingKey;
92  	}
93  	/**
94  	 * @return the type
95  	 */
96  	@XmlAttribute
97  	public String getType() {
98  		return type;
99  	}
100 	/**
101 	 * @param type the type to set
102 	 */
103 	public void setType(String type) {
104 		this.type = type;
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 titleSort
121 	 */
122 	@XmlAttribute
123 	public String getTitleSort() {
124 		return titleSort;
125 	}
126 	/**
127 	 * @param titleSort the titleSort to set
128 	 */
129 	public void setTitleSort(String titleSort) {
130 		this.titleSort = titleSort;
131 	}
132 	/**
133 	 * @return the summary
134 	 */
135 	@XmlAttribute
136 	public String getSummary() {
137 		return summary;
138 	}
139 	/**
140 	 * @param summary the summary to set
141 	 */
142 	public void setSummary(String summary) {
143 		this.summary = summary;
144 	}
145 	/**
146 	 * @return the year
147 	 */
148 	@XmlAttribute
149 	public String getYear() {
150 		return year;
151 	}
152 	/**
153 	 * @param year the year to set
154 	 */
155 	public void setYear(String year) {
156 		this.year = year;
157 	}
158 	/**
159 	 * @return the thumb
160 	 */
161 	@XmlAttribute
162 	public String getThumb() {
163 		return thumb;
164 	}
165 	/**
166 	 * @param thumb the thumb to set
167 	 */
168 	public void setThumb(String thumb) {
169 		this.thumb = thumb;
170 	}
171 	/**
172 	 * @return the art
173 	 */
174 	@XmlAttribute
175 	public String getArt() {
176 		return art;
177 	}
178 	/**
179 	 * @param art the art to set
180 	 */
181 	public void setArt(String art) {
182 		this.art = art;
183 	}
184 	/**
185 	 * @return the duration
186 	 */
187 	@XmlAttribute
188 	public int getDuration() {
189 		return duration;
190 	}
191 	/**
192 	 * @param duration the duration to set
193 	 */
194 	public void setDuration(int duration) {
195 		this.duration = duration;
196 	}
197 	/**
198 	 * @return the originallyAvailableAt
199 	 */
200 	@XmlAttribute
201 	public String getOriginallyAvailableAt() {
202 		return originallyAvailableAt;
203 	}
204 	/**
205 	 * @param originallyAvailableAt the originallyAvailableAt to set
206 	 */
207 	public void setOriginallyAvailableAt(String originallyAvailableAt) {
208 		this.originallyAvailableAt = originallyAvailableAt;
209 	}
210 	/**
211 	 * @return the addedAt
212 	 */
213 	@XmlAttribute
214 	public int getAddedAt() {
215 		return addedAt;
216 	}
217 	/**
218 	 * @param addedAt the addedAt to set
219 	 */
220 	public void setAddedAt(int addedAt) {
221 		this.addedAt = addedAt;
222 	}
223 	/**
224 	 * @return the updatedAt
225 	 */
226 	@XmlAttribute
227 	public int getUpdatedAt() {
228 		return updatedAt;
229 	}
230 	/**
231 	 * @param updatedAt the updatedAt to set
232 	 */
233 	public void setUpdatedAt(int updatedAt) {
234 		this.updatedAt = updatedAt;
235 	}
236 	/**
237 	 * @return the contentRating
238 	 */
239 	@XmlAttribute
240 	public String getContentRating() {
241 		return contentRating;
242 	}
243 	/**
244 	 * @param contentRating the contentRating to set
245 	 */
246 	public void setContentRating(String contentRating) {
247 		this.contentRating = contentRating;
248 	}
249 	/**
250 	 * @return the studio
251 	 */
252 	@XmlAttribute
253 	public String getStudio() {
254 		return studio;
255 	}
256 	/**
257 	 * @param studio the studio to set
258 	 */
259 	public void setStudio(String studio) {
260 		this.studio = studio;
261 	}
262 	/**
263 	 * @return the tagLine
264 	 */
265 	@XmlAttribute
266 	public String getTagline() {
267 		return tagline;
268 	}
269 	/**
270 	 * @param tagLine the tagLine to set
271 	 */
272 	public void setTagline(String tagline) {
273 		this.tagline = tagline;
274 	}
275 	/**
276 	 * @return the genres
277 	 */
278 	@XmlElement(name = "Genre")
279 	public Collection<Genre> getGenres() {
280 		return genres;
281 	}
282 	/**
283 	 * @param genres the genres to set
284 	 */
285 	public void setGenres(Collection<Genre> genres) {
286 		this.genres = genres;
287 	}
288 	/**
289 	 * @return the writers
290 	 */
291 	@XmlElement(name = "Writer")
292 	public Collection<Writer> getWriters() {
293 		return writers;
294 	}
295 	/**
296 	 * @param writers the writers to set
297 	 */
298 	public void setWriters(Collection<Writer> writers) {
299 		this.writers = writers;
300 	}
301 	/**
302 	 * @return the directors
303 	 */
304 	@XmlElement(name = "Director")
305 	public Collection<Director> getDirectors() {
306 		return directors;
307 	}
308 	/**
309 	 * @param directors the directors to set
310 	 */
311 	public void setDirectors(Collection<Director> directors) {
312 		this.directors = directors;
313 	}
314 	/**
315 	 * @return the roles
316 	 */
317 	@XmlElement(name = "Role")
318 	public Collection<Role> getRoles() {
319 		return roles;
320 	}
321 	/**
322 	 * @param roles the roles to set
323 	 */
324 	public void setRoles(Collection<Role> roles) {
325 		this.roles = roles;
326 	}
327 
328 }