org.mythtv.services.api.v026.impl
Class CaptureTemplate

java.lang.Object
  extended by org.mythtv.services.api.AbstractOperations
      extended by org.mythtv.services.api.v026.impl.CaptureTemplate
All Implemented Interfaces:
CaptureOperations

public class CaptureTemplate
extends AbstractOperations
implements CaptureOperations


Nested Class Summary
static class CaptureTemplate.Endpoint
           
 
Field Summary
 
Fields inherited from class org.mythtv.services.api.AbstractOperations
formatter
 
Constructor Summary
CaptureTemplate(org.springframework.web.client.RestOperations restOperations, java.lang.String apiUrlBase)
           
 
Method Summary
 org.springframework.http.ResponseEntity<Int> addCaptureCard(CaptureCard captureCard)
          - POST
 org.springframework.http.ResponseEntity<Int> addCardInput(CardInput cardInput)
          - POST
protected  java.lang.String getApiUrlBase()
           
 org.springframework.http.ResponseEntity<CaptureCardWrapper> getCaptureCard(int cardId, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<CaptureCardList> getCaptureCardList(ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<CaptureCardList> getCaptureCardList(java.lang.String hostName, java.lang.String cardType, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<Bool> removeCaptureCard(int cardId, ETagInfo etag)
          - POST
 org.springframework.http.ResponseEntity<Bool> removeCardInput(int cardInputId)
          - POST
 org.springframework.http.ResponseEntity<Bool> updateCaptureCard(int cardId, java.lang.String setting, java.lang.String value)
          - POST
 org.springframework.http.ResponseEntity<Bool> updateCardInput(int cardInputId, java.lang.String setting, java.lang.String value)
          - POST
 
Methods inherited from class org.mythtv.services.api.AbstractOperations
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtag, setLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureTemplate

public CaptureTemplate(org.springframework.web.client.RestOperations restOperations,
                       java.lang.String apiUrlBase)
Method Detail

addCaptureCard

public org.springframework.http.ResponseEntity<Int> addCaptureCard(CaptureCard captureCard)
                                                            throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- POST

Specified by:
addCaptureCard in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

addCardInput

public org.springframework.http.ResponseEntity<Int> addCardInput(CardInput cardInput)
                                                          throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- POST

Specified by:
addCardInput in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

getCaptureCard

public org.springframework.http.ResponseEntity<CaptureCardWrapper> getCaptureCard(int cardId,
                                                                                  ETagInfo etag)
                                                                           throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- GET

Specified by:
getCaptureCard in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

getCaptureCardList

public org.springframework.http.ResponseEntity<CaptureCardList> getCaptureCardList(ETagInfo etag)
                                                                            throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- GET

Specified by:
getCaptureCardList in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

getCaptureCardList

public org.springframework.http.ResponseEntity<CaptureCardList> getCaptureCardList(java.lang.String hostName,
                                                                                   java.lang.String cardType,
                                                                                   ETagInfo etag)
                                                                            throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- GET

Specified by:
getCaptureCardList in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

removeCaptureCard

public org.springframework.http.ResponseEntity<Bool> removeCaptureCard(int cardId,
                                                                       ETagInfo etag)
                                                                throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- POST

Specified by:
removeCaptureCard in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

removeCardInput

public org.springframework.http.ResponseEntity<Bool> removeCardInput(int cardInputId)
                                                              throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- POST

Specified by:
removeCardInput in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

updateCaptureCard

public org.springframework.http.ResponseEntity<Bool> updateCaptureCard(int cardId,
                                                                       java.lang.String setting,
                                                                       java.lang.String value)
                                                                throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- POST

Specified by:
updateCaptureCard in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

updateCardInput

public org.springframework.http.ResponseEntity<Bool> updateCardInput(int cardInputId,
                                                                     java.lang.String setting,
                                                                     java.lang.String value)
                                                              throws MythServiceApiRuntimeException
Description copied from interface: CaptureOperations
- POST

Specified by:
updateCardInput in interface CaptureOperations
Returns:
Throws:
MythServiceApiRuntimeException

getApiUrlBase

protected java.lang.String getApiUrlBase()
Overrides:
getApiUrlBase in class AbstractOperations
Returns: