@Protocol(charset="UTF-8") @ApplicationPath(value="http://{host}:{port}/") public interface HDHRPrimeProtocol
Modifier and Type | Method and Description |
---|---|
default List<LineupEntry> |
getLineup(String host)
SiliconDust HD Homerun Prime
(CableCard) line-up request.
|
List<LineupEntry> |
getLineup(String host,
Integer port)
SiliconDust HD Homerun Prime
(CableCard) line-up request.
|
HttpResponse |
getLineup(String host,
Integer port,
String show,
String type)
SiliconDust HD Homerun Prime
(CableCard) line-up request.
|
default HttpResponse |
getLineup(String host,
String show)
SiliconDust HD Homerun Prime
(CableCard) line-up request (providing results in JSON).
|
default HttpResponse |
stream(String host,
Integer tuner,
Integer channel,
Integer duration)
SiliconDust HD Homerun Prime
(CableCard) stream ("record") request (auto-select tuner).
|
HttpResponse |
stream(String host,
Integer port,
String tuner,
String channel,
Integer duration)
SiliconDust HD Homerun Prime
(CableCard) stream ("record") request.
|
@GET @Path(value="lineup.{type}") HttpResponse getLineup(@PathParam(value="") String host, @PathParam(value="") Integer port, @QueryParam(value="") String show, @PathParam(value="") String type) throws HttpResponseException, ClientProtocolException, IOException
host
- The host IP or name.port
- The port.show
- What to show.type
- The type of output.HttpResponse
containing the line-up.IOException
- See ProtocolClient
.HttpResponseException
- See ProtocolClient
.ClientProtocolException
- See ProtocolClient
.default HttpResponse getLineup(String host, String show) throws HttpResponseException, ClientProtocolException, IOException
host
- The host IP or name.show
- What to show.HttpResponse
containing the line-up.IOException
- See ProtocolClient
.HttpResponseException
- See ProtocolClient
.ClientProtocolException
- See ProtocolClient
.@GET @Path(value="lineup.json") List<LineupEntry> getLineup(@PathParam(value="") String host, @PathParam(value="") Integer port) throws HttpResponseException, ClientProtocolException, IOException
host
- The host IP or name.port
- The port.HttpResponse
containing the line-up.IOException
- See ProtocolClient
.HttpResponseException
- See ProtocolClient
.ClientProtocolException
- See ProtocolClient
.default List<LineupEntry> getLineup(String host) throws HttpResponseException, ClientProtocolException, IOException
host
- The host IP or name.HttpResponse
containing the line-up.IOException
- See ProtocolClient
.HttpResponseException
- See ProtocolClient
.ClientProtocolException
- See ProtocolClient
.@GET @Path(value="{tuner}/{channel}") HttpResponse stream(@PathParam(value="") String host, @PathParam(value="") Integer port, @PathParam(value="") String tuner, @PathParam(value="") String channel, @QueryParam(value="") Integer duration) throws HttpResponseException, ClientProtocolException, IOException
host
- The host IP or name.port
- The port.tuner
- The tuner to use.channel
- The channel to tune.duration
- The time to stream in seconds.HttpResponse
containing the stream.IOException
- See ProtocolClient
.HttpResponseException
- See ProtocolClient
.ClientProtocolException
- See ProtocolClient
.default HttpResponse stream(String host, Integer tuner, Integer channel, Integer duration) throws HttpResponseException, ClientProtocolException, IOException
host
- The host IP or name.tuner
- The tuner to use (may be null
).channel
- The channel to tune.duration
- The time to stream in seconds.HttpResponse
containing the stream.IOException
- See ProtocolClient
.HttpResponseException
- See ProtocolClient
.ClientProtocolException
- See ProtocolClient
.Copyright © 2015–2020 Allen D. Ball. All rights reserved.