View Javadoc
1   /******************************************************************************
2    * RestLibraryStatus.java - Client facing domain object
3    * $Id: RestLibraryStatus.java,v 1.3 2014/10/26 05:36:57 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2014 - Dick Balaska
7    * 
8    * $Log: RestLibraryStatus.java,v $
9    * Revision 1.3  2014/10/26 05:36:57  dick
10   * recentlyAdded status can display 2 videos.
11   *
12   * Revision 1.2  2014/10/25 22:52:39  dick
13   * Send the whole video in status, not just the key.  Client wants the title too.
14   *
15   * Revision 1.1  2014/10/20 01:38:24  dick
16   * Client facing status object.
17   *
18   */
19  package com.buckosoft.BuckoVidLib.domain.rest;
20  
21  import java.util.List;
22  
23  import javax.xml.bind.annotation.XmlElement;
24  import javax.xml.bind.annotation.XmlRootElement;
25  
26  /** Client facing status object.
27   * @author dick
28   * @since 2014-10-18
29   */
30  @XmlRootElement(name="LibraryStatus")
31  public class RestLibraryStatus {
32  	
33  	private	List<RestVideo>	recentlyAddedVideos;
34  	private	long		lastUpdated;
35  
36  	
37  	/**
38  	 * @return the recentlyAddedVideos
39  	 */
40  	@XmlElement(name="Video")
41  	public List<RestVideo> getRecentlyAddedVideos() {
42  		return recentlyAddedVideos;
43  	}
44  
45  	/**
46  	 * @param recentlyAddedVideos the recentlyAddedVideos to set
47  	 */
48  	public void setRecentlyAddedVideos(List<RestVideo> recentlyAddedVideos) {
49  		this.recentlyAddedVideos = recentlyAddedVideos;
50  	}
51  
52  	/**
53  	 * @return the lastUpdated
54  	 */
55  	public long getLastUpdated() {
56  		return lastUpdated;
57  	}
58  
59  	/**
60  	 * @param lastUpdated the lastUpdated to set
61  	 */
62  	public void setLastUpdated(long lastUpdated) {
63  		this.lastUpdated = lastUpdated;
64  	}
65  
66  
67  }