public interface LiveScoutFeed extends UserRequestManager, LiveFeed
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the communication channel with the live-scout server.
|
void |
getMatchList(int hoursBack,
int hoursForward,
boolean includeAvailable)
Get a list of matches
|
void |
getMatchList(int hoursBack,
int hoursForward,
boolean includeAvailable,
Collection<Long> sportIds,
Collection<Long> matchIds)
Requests a list of available scout matches for a given time frame.
|
void |
open(LiveScoutFeedListener listener)
Opens the communication channel with the live-scout server
|
void |
requestServerTime()
Makes a server time request.
|
void |
subscribeToTest(EventIdentifier eventId,
Integer messageDelay,
Integer startMessage)
Request a full feed for the match, and then update messages will follow in the same pace as they were sent out live.
|
bookMatches, getSubscribedEvents, getTestManager, subscribe, unsubscribe
getConnectionParams
void close()
IllegalStateException
- if the feed is already closed.void getMatchList(int hoursBack, int hoursForward, boolean includeAvailable, Collection<Long> sportIds, Collection<Long> matchIds)
By default only matches you have access to will be sent.
You can also request all available matches by setting the includeAvailable
If this is done the reply will also include matches that are open for booking.
hoursBack
- Specifies the open of the time framehoursForward
- Specifies the end of the time frameincludeAvailable
- Specifies whether matches available for booking should be includedsportIds
- - filter by sports ids, nullablematchIds
- - filter by matches ids, nullable ( Not implemented yet on LDS side !!)IllegalStateException
- if the feed is not openedvoid getMatchList(int hoursBack, int hoursForward, boolean includeAvailable)
hoursBack
- - number of hours back (from current time)hoursForward
- - number of hours forward (from current time)includeAvailable
- - include also available matches (which you have not booked yet)void open(LiveScoutFeedListener listener)
listener
- The LiveScoutFeedListener
instance used to observe the current LiveScoutFeed
IllegalArgumentException
- if listener
is a null reference.IllegalStateException
- if the feed is already opened or disposed.void requestServerTime()
IllegalStateException
- if the feed is already opened or disposed.void subscribeToTest(EventIdentifier eventId, Integer messageDelay, Integer startMessage)
This should only be used on the test server.
If startMessage
is greater than or equal to the number of messages for the match,
a full feed for the finished match is sent out, and no more messages will follow after this.
eventId
- The id of the event.messageDelay
- Specifies how many milliseconds to wait between sending out each messagestartMessage
- Specifies which message to open replay on (how far into the match).IllegalArgumentException
- if eventId
is a null reference.IllegalStateException
- if the feed is not openedCopyright © 2013–2023. All rights reserved.