View Javadoc
1   /******************************************************************************
2    * LibraryService.java - Interface to call into plex
3    * $Id: LibraryService.java,v 1.6 2014/11/13 06:23:33 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2014 - Dick Balaska
7    * 
8    * $Log: LibraryService.java,v $
9    * Revision 1.6  2014/11/13 06:23:33  dick
10   * Fetch tvShows() from a season.
11   *
12   * Revision 1.5  2014/10/20 01:10:37  dick
13   * tvSeasons() loads the seasons for a show.
14   *
15   * Revision 1.4  2014/10/19 01:43:55  dick
16   * Add recentlyAdded().
17   *
18   * Revision 1.3  2014/10/08 04:40:30  dick
19   * Add videosAll(key)
20   *
21   * Revision 1.2  2014/10/06 08:11:47  dick
22   * Add the sections() call.
23   *
24   * Revision 1.1  2014/10/04 16:17:40  dick
25   * Define a web client that can talk to the plex server.
26   */
27  package com.buckosoft.BuckoVidLib.web.plex.client;
28  
29  import javax.ws.rs.Consumes;
30  import javax.ws.rs.GET;
31  import javax.ws.rs.Path;
32  import javax.ws.rs.PathParam;
33  import javax.ws.rs.Produces;
34  
35  import tv.plex.domain.MediaContainer;
36  
37  /** Interface to call into plex.
38   * @author dick
39   * @since 2014-10-04
40   */
41  @Path("/library")
42  @Produces("text/xml")
43  @Consumes("text/xml")
44  public interface LibraryService {
45  
46  	@GET
47  	@Path("/")
48  	@Produces("application/xml")
49  	MediaContainer	root();
50  
51  	@GET
52  	@Path("/sections")
53  	@Produces("application/xml")
54  	MediaContainer	sections();
55  	
56  	@GET
57  	@Path("/sections/{key}/all")
58  	MediaContainer	videosAll(@PathParam("key") int key);
59  	
60  	@GET
61  	@Path("/recentlyAdded")
62  	MediaContainer	recentlyAdded();
63  	
64  	@GET
65  	@Path("/metadata/{key}/children")
66  	MediaContainer	tvSeasons(@PathParam("key") int key);
67  
68  	@GET
69  	@Path("/metadata/{key}/children")
70  	MediaContainer	tvShows(@PathParam("key") int key);
71  }