public class ChannelTemplate extends AbstractOperations implements ChannelOperations
formatter| Constructor and Description |
|---|
ChannelTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Bool> |
addDBChannel(int multiplexId,
int sourceId,
int channelId,
String callSign,
String channelName,
String channelNumber,
int serviceId,
int atscMajorChannel,
int atscMinorChannel,
boolean userEIT,
boolean visible,
String frequencyId,
String icon,
String format,
String xmltvId,
String defaultAuthority)
- POST
|
org.springframework.http.ResponseEntity<Int> |
addVideoSource(String sourceName,
String grabber,
String userId,
String frequencyTable,
String lineupId,
String password,
boolean useEit,
String configPath,
int nitId)
- POST
|
org.springframework.http.ResponseEntity<Int> |
fetchChannelsFromSource(int sourceId,
int cardId,
boolean waitForFinish,
ETagInfo etag)
- GET
|
protected String |
getApiUrlBase() |
org.springframework.http.ResponseEntity<ChannelInfoWrapper> |
getChannelInfo(int channelId,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<ChannelInfoList> |
getChannelInfoList(ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<ChannelInfoList> |
getChannelInfoList(int sourceId,
int startIndex,
int count,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<LineupList> |
getDDLineupList(String source,
String userId,
String password,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoMultiplexWrapper> |
getVideoMultiplex(int multiplexId,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoMultiplexList> |
getVideoMultiplexList(int sourceId,
int startIndex,
int count,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoSourceWrapper> |
getVideoSource(int sourceId,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoSourceList> |
getVideoSourceList(ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<StringList> |
getXmltvIdList(int sourceId,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<Bool> |
removeDBChannel(int channelId)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
removeVideoSource(int sourceId)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
updateDBChannel(int multiplexId,
int sourceId,
int channelId,
String callSign,
String channelName,
String channelNumber,
int serviceId,
int atscMajorChannel,
int atscMinorChannel,
boolean useEIT,
boolean visible,
String frequencyId,
String icon,
String format,
String xmltvId,
String defaultAuthority)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
updateVideoSource(int sourceId,
String sourceName,
String grabber,
String userId,
String frequencyTable,
String lineupId,
String password,
boolean userEIT,
String configPath,
int nitId)
- POST
|
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtagpublic ChannelTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase)
public org.springframework.http.ResponseEntity<Bool> addDBChannel(int multiplexId, int sourceId, int channelId, String callSign, String channelName, String channelNumber, int serviceId, int atscMajorChannel, int atscMinorChannel, boolean userEIT, boolean visible, String frequencyId, String icon, String format, String xmltvId, String defaultAuthority) throws MythServiceApiRuntimeException
ChannelOperationsaddDBChannel in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Int> addVideoSource(String sourceName, String grabber, String userId, String frequencyTable, String lineupId, String password, boolean useEit, String configPath, int nitId) throws MythServiceApiRuntimeException
ChannelOperationsaddVideoSource in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Int> fetchChannelsFromSource(int sourceId, int cardId, boolean waitForFinish, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsfetchChannelsFromSource in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<ChannelInfoWrapper> getChannelInfo(int channelId, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetChannelInfo in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<ChannelInfoList> getChannelInfoList(int sourceId, int startIndex, int count, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetChannelInfoList in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<ChannelInfoList> getChannelInfoList(ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetChannelInfoList in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LineupList> getDDLineupList(String source, String userId, String password, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetDDLineupList in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoMultiplexWrapper> getVideoMultiplex(int multiplexId, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetVideoMultiplex in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoMultiplexList> getVideoMultiplexList(int sourceId, int startIndex, int count, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetVideoMultiplexList in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoSourceWrapper> getVideoSource(int sourceId, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetVideoSource in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoSourceList> getVideoSourceList(ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetVideoSourceList in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<StringList> getXmltvIdList(int sourceId, ETagInfo etag) throws MythServiceApiRuntimeException
ChannelOperationsgetXmltvIdList in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> removeDBChannel(int channelId) throws MythServiceApiRuntimeException
ChannelOperationsremoveDBChannel in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> removeVideoSource(int sourceId) throws MythServiceApiRuntimeException
ChannelOperationsremoveVideoSource in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> updateDBChannel(int multiplexId, int sourceId, int channelId, String callSign, String channelName, String channelNumber, int serviceId, int atscMajorChannel, int atscMinorChannel, boolean useEIT, boolean visible, String frequencyId, String icon, String format, String xmltvId, String defaultAuthority) throws MythServiceApiRuntimeException
ChannelOperationsupdateDBChannel in interface ChannelOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> updateVideoSource(int sourceId, String sourceName, String grabber, String userId, String frequencyTable, String lineupId, String password, boolean userEIT, String configPath, int nitId) throws MythServiceApiRuntimeException
ChannelOperationsupdateVideoSource in interface ChannelOperationsMythServiceApiRuntimeExceptionprotected String getApiUrlBase()
getApiUrlBase in class AbstractOperationsCopyright © 2012. All Rights Reserved.