Interface LiveScoutFeedListener
LiveScoutFeed implementations-
Method Summary
Modifier and TypeMethodDescriptionvoidonClosed(LiveScoutFeed sender) Invoked when the feed is closed.voidonFeedEvent(LiveScoutFeed sender, FeedEventType eventType) Invoked by the observed live feed when it encounters an special event related to the behavior of the server.voidonFullMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate) Invoked by the observedLiveScoutFeedwhen full match update is received.voidonFullPaginatedMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate) Invoked by the observedLiveScoutFeedwhen partial match update is received.voidonInitialized(LiveScoutFeed sender) Invoked when the feed is initialized and you can accept bets.voidonLineupsReceived(LiveScoutFeed sender, LineupsEntity lineups) Invoked by the observedLiveScoutFeedwhen player lineups for both teams are received.voidonMatchBooked(LiveScoutFeed sender, MatchBookingEntity matchBooked) Invoked by the observedLiveScoutFeedwhen a match-booked reply is received.voidonMatchDataReceived(LiveScoutFeed sender, MatchDataEntity matchData) Invoked by the observedLiveScoutFeedwhen match data is received.voidonMatchDeltaUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate) Invoked by the observedLiveScoutFeedwhen match delta update is received.voidonMatchDeltaUpdateUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate) Invoked by the observedLiveScoutFeedwhen match delta update delta message is received.voidonMatchListReceived(LiveScoutFeed sender, MatchListEntity matchList) Invoked by the observedLiveScoutFeedwhen match list requested by the user is received.voidonMatchListUpdateReceived(LiveScoutFeed sender, MatchListUpdateEntity matchList) Invoked by the observedLiveScoutFeedwhen an unsolicited match list is received.voidonMatchStopped(LiveScoutFeed sender, MatchStopEntity matchStop) Invoked by the observedLiveScoutFeedafter the was un-subscribed from a match or if subscription to a match failed.voidonMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate) Invoked by the observedLiveScoutFeedwhen match update message is received.voidonOpened(LiveScoutFeed sender) Invoked when the feed is opened.voidonServerTimeReceived(LiveScoutFeed sender, ServerTimeEntity serverTime) Server time request response
-
Method Details
-
onInitialized
Invoked when the feed is initialized and you can accept bets. It is invoked exactly once after the feed has been opened.- Parameters:
sender- - originating feed
-
onOpened
Invoked when the feed is opened.- Parameters:
sender- TheLiveScoutFeedsender of the event.
-
onFeedEvent
Invoked by the observed live feed when it encounters an special event related to the behavior of the server.- Parameters:
sender- TheLiveScoutFeedsender of the event.eventType- TheFeedEventTypemember specifying the type of the occurred event.
-
onLineupsReceived
Invoked by the observedLiveScoutFeedwhen player lineups for both teams are received.The event is dispatched immediately after subscribing to a match and every time the lineup changes. XML configuration option "Send lineups for matches where this is available" needs to be activated (currently works just for deep coverage soccer matches).
- Parameters:
sender- TheLiveScoutFeedsender of the event.lineups- TheLineupsEntityrepresenting the received lineups.
-
onMatchBooked
Invoked by the observedLiveScoutFeedwhen a match-booked reply is received. Reply is sent by the live-scout server when a client books a match. If match booking failed for some reason (match already booked, match finished etc.), the reply will contain additional explanation.- Parameters:
sender- TheLiveScoutFeedsender of the event.matchBooked- TheMatchBookingEntityrepresenting the received message.
-
onMatchDataReceived
Invoked by the observedLiveScoutFeedwhen match data is received.- Parameters:
sender- TheLiveScoutFeedsender of the event.matchData- TheMatchListEntityrepresenting the received match data.
-
onMatchUpdateReceived
Invoked by the observedLiveScoutFeedwhen match update message is received. There are three types of match information messages: full match feed, delta match feed and delta update feed (seeScoutFeedType. All three can contain statistical information as well as individual events (an event being a goal, card, etc.).When a client application subscribes to a match, it will receive a full match update immediately after (given the subscription was successful). This message will contain all data for the match. Different event types are offered for different sports. Note that new event types will be added in the future.
After a full match update is received, most updates will be sent as delta updates. In these messages only the new data is sent, if a yellow card is given only this event will be sent. In addition summary data will be sent for the event type in question, i.e. the total number of yellow cards for the home/away team for the match.
If an existing event is changed, a delta update is sent for this event. E.g. a yellow card event is entered, and 1 minute later the event is updated by including which player got the card. Client must consider this as an update to an existing event, and not a new event (based on Event Id property).
- Parameters:
sender- TheLiveScoutFeedsender of the event.matchUpdate- TheMatchUpdateEntityrepresenting the received match-update message
-
onFullMatchUpdateReceived
Invoked by the observedLiveScoutFeedwhen full match update is received. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)- Parameters:
sender- TheLiveScoutFeedsender of the event.matchUpdate- TheMatchUpdateEntityrepresenting the received match-update message
-
onFullPaginatedMatchUpdateReceived
Invoked by the observedLiveScoutFeedwhen partial match update is received. All partials are coming under same UUID and have page and total pages fields. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)- Parameters:
sender- TheLiveScoutFeedsender of the event.matchUpdate- TheMatchUpdateEntityrepresenting the received match-update message
-
onMatchDeltaUpdateReceived
Invoked by the observedLiveScoutFeedwhen match delta update is received. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)- Parameters:
sender- TheLiveScoutFeedsender of the event.matchUpdate- TheMatchUpdateEntityrepresenting the received match-update message
-
onMatchDeltaUpdateUpdateReceived
Invoked by the observedLiveScoutFeedwhen match delta update delta message is received. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)- Parameters:
sender- TheLiveScoutFeedsender of the event.matchUpdate- TheMatchUpdateEntityrepresenting the received match-update message
-
onMatchListReceived
Invoked by the observedLiveScoutFeedwhen match list requested by the user is received.- Parameters:
sender- TheLiveScoutFeedsender of the event.matchList- TheMatchListEntityrepresenting the received match list.
-
onMatchListUpdateReceived
Invoked by the observedLiveScoutFeedwhen an unsolicited match list is received.- Parameters:
sender- TheLiveScoutFeedsender of the event.matchList-MatchListUpdateEntityrepresenting the received match list.
-
onMatchStopped
Invoked by the observedLiveScoutFeedafter the was un-subscribed from a match or if subscription to a match failed.- Parameters:
sender- TheLiveScoutFeedsender of the event.matchStop- TheMatchStopEntityrepresenting the un-subscription message
-
onServerTimeReceived
Server time request response- Parameters:
sender- TheLiveScoutFeedsender of the event.serverTime- TheServerTimeEntityrepresenting the received server time.
-
onClosed
Invoked when the feed is closed.- Parameters:
sender- TheLiveScoutFeedsender of the event.
-