Interface UserRequestManager
- All Known Subinterfaces:
- LiveScoutFeed,- LiveScoutUserRequestManager
- All Known Implementing Classes:
- LiveScoutFeedImpl,- LiveScoutUserRequestManagerImpl
public interface UserRequestManager
Represents a class used to process explicit user requests by generating and sending server messages.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbookMatches(EventIdentifier[] eventIds) Book the specified matches.Gets the ids of all subscribed matches.When connected to the test server you can obtain a manager to manipulate it.voidsubscribe(EventIdentifier... eventIds) Subscribe to specified matches.voidunsubscribe(EventIdentifier... eventIds) Un-subscribe from the specified matches.
- 
Method Details- 
bookMatchesBook the specified matches. Booked matches cannot be cancelled through this interface. This method can block to prevent going over the server limits. Use this call in non SDK dispatcher thread!You should prefer using the Live Calendar on the Betradar website (http://www.betradar.com) which offers automatic booking for certain types of matches. Note that booking matches will have a cost depending on the type of agreement you have with Sportradar. LiveScout: Expect LiveScoutFeedListener.onMatchBooked(LiveScoutFeed, MatchBookingEntity)message in reply.- Parameters:
- eventIds- Array of event ids to book
- Throws:
- IllegalArgumentException- if- eventIdsis a null reference.
 
- 
getSubscribedEventsEventIdentifier[] getSubscribedEvents()Gets the ids of all subscribed matches.- Returns:
- the ids of all subscribed matches.
 
- 
getTestManagerTestManager getTestManager()When connected to the test server you can obtain a manager to manipulate it.- Returns:
- a TestManagerimplementation
 
- 
subscribeSubscribe to specified matches. This method can block to prevent going over the server limits. Use this call in non SDK dispatcher thread! LiveScout: ExpectLiveScoutFeedListener.onMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)message is response. If match subscription is successful, a full match update is sent out. Otherwise explanation will be given in the response message (e.g. you do not have access to the match or there are already two open subscriptions for the match). With LiveScout you must explicitly callsubscribe(EventIdentifier[])at start-up or no data will be received.- Parameters:
- eventIds- Array of eventIds
 
- 
unsubscribeUn-subscribe from the specified matches. After this no more events associated with these matches will be sent. This method can block to prevent going over the server limits. Use this call in non SDK dispatcher thread! LiveScout: ExpectLiveScoutFeedListener.onMatchStopped(LiveScoutFeed, MatchStopEntity)message in response.- Parameters:
- eventIds- Array of event ids from which to un-subscribe
- Throws:
- IllegalArgumentException- if- eventIdsis a null reference.
 
 
-