org.mythtv.services.api.guide.impl
Class GuideTemplate

java.lang.Object
  extended by org.mythtv.services.api.AbstractOperations
      extended by org.mythtv.services.api.guide.impl.GuideTemplate
All Implemented Interfaces:
GuideOperations

public class GuideTemplate
extends AbstractOperations
implements GuideOperations

Author:
Daniel Frey

Nested Class Summary
static class GuideTemplate.Endpoint
           
 
Field Summary
 
Fields inherited from class org.mythtv.services.api.AbstractOperations
formatter
 
Constructor Summary
GuideTemplate(org.springframework.web.client.RestOperations restOperations, String apiUrlBase)
           
 
Method Summary
protected  String getApiUrlBase()
           
 org.springframework.http.ResponseEntity<String> getChannelIcon(int channelId, int width, int height, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<ProgramWrapper> getProgramDetails(int channelId, org.joda.time.DateTime startTime, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<ProgramGuideWrapper> getProgramGuide(org.joda.time.DateTime start, org.joda.time.DateTime end, int startChannelId, int numberOfChannels, boolean details, ETagInfo etag)
          - GET
 
Methods inherited from class org.mythtv.services.api.AbstractOperations
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuideTemplate

public GuideTemplate(org.springframework.web.client.RestOperations restOperations,
                     String apiUrlBase)
Method Detail

getChannelIcon

public org.springframework.http.ResponseEntity<String> getChannelIcon(int channelId,
                                                                      int width,
                                                                      int height,
                                                                      ETagInfo etag)
                                                               throws MythServiceApiRuntimeException
Description copied from interface: GuideOperations
- GET

Specified by:
getChannelIcon in interface GuideOperations
Returns:
Throws:
MythServiceApiRuntimeException

getProgramDetails

public org.springframework.http.ResponseEntity<ProgramWrapper> getProgramDetails(int channelId,
                                                                                 org.joda.time.DateTime startTime,
                                                                                 ETagInfo etag)
                                                                          throws MythServiceApiRuntimeException
Description copied from interface: GuideOperations
- GET

Specified by:
getProgramDetails in interface GuideOperations
Returns:
Throws:
MythServiceApiRuntimeException

getProgramGuide

public org.springframework.http.ResponseEntity<ProgramGuideWrapper> getProgramGuide(org.joda.time.DateTime start,
                                                                                    org.joda.time.DateTime end,
                                                                                    int startChannelId,
                                                                                    int numberOfChannels,
                                                                                    boolean details,
                                                                                    ETagInfo etag)
                                                                             throws MythServiceApiRuntimeException
Description copied from interface: GuideOperations
- GET

Specified by:
getProgramGuide in interface GuideOperations
Returns:
Throws:
MythServiceApiRuntimeException

getApiUrlBase

protected String getApiUrlBase()
Overrides:
getApiUrlBase in class AbstractOperations
Returns:


Copyright © 2012. All Rights Reserved.