Interface LiveScoutFeedListener
-
public interface LiveScoutFeedListener
Represents a listener used to observeLiveScoutFeed
implementations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClosed(LiveScoutFeed sender)
Invoked when the feed is closed.void
onFeedEvent(LiveScoutFeed sender, FeedEventType eventType)
Invoked by the observed live feed when it encounters an special event related to the behavior of the server.void
onFullMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when full match update is received.void
onFullPaginatedMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when partial match update is received.void
onInitialized(LiveScoutFeed sender)
Invoked when the feed is initialized and you can accept bets.void
onLineupsReceived(LiveScoutFeed sender, LineupsEntity lineups)
Invoked by the observedLiveScoutFeed
when player lineups for both teams are received.void
onMatchBooked(LiveScoutFeed sender, MatchBookingEntity matchBooked)
Invoked by the observedLiveScoutFeed
when a match-booked reply is received.void
onMatchDataReceived(LiveScoutFeed sender, MatchDataEntity matchData)
Invoked by the observedLiveScoutFeed
when match data is received.void
onMatchDeltaUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when match delta update is received.void
onMatchDeltaUpdateUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when match delta update delta message is received.void
onMatchListReceived(LiveScoutFeed sender, MatchListEntity matchList)
Invoked by the observedLiveScoutFeed
when match list requested by the user is received.void
onMatchListUpdateReceived(LiveScoutFeed sender, MatchListUpdateEntity matchList)
Invoked by the observedLiveScoutFeed
when an unsolicited match list is received.void
onMatchStopped(LiveScoutFeed sender, MatchStopEntity matchStop)
Invoked by the observedLiveScoutFeed
after the was un-subscribed from a match or if subscription to a match failed.void
onMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when match update message is received.void
onOpened(LiveScoutFeed sender)
Invoked when the feed is opened.void
onServerTimeReceived(LiveScoutFeed sender, ServerTimeEntity serverTime)
Server time request response
-
-
-
Method Detail
-
onInitialized
void onInitialized(LiveScoutFeed sender)
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
void onOpened(LiveScoutFeed sender)
Invoked when the feed is opened.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.
-
onFeedEvent
void onFeedEvent(LiveScoutFeed sender, FeedEventType eventType)
Invoked by the observed live feed when it encounters an special event related to the behavior of the server.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.eventType
- TheFeedEventType
member specifying the type of the occurred event.
-
onLineupsReceived
void onLineupsReceived(LiveScoutFeed sender, LineupsEntity lineups)
Invoked by the observedLiveScoutFeed
when 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
- TheLiveScoutFeed
sender of the event.lineups
- TheLineupsEntity
representing the received lineups.
-
onMatchBooked
void onMatchBooked(LiveScoutFeed sender, MatchBookingEntity matchBooked)
Invoked by the observedLiveScoutFeed
when 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
- TheLiveScoutFeed
sender of the event.matchBooked
- TheMatchBookingEntity
representing the received message.
-
onMatchDataReceived
void onMatchDataReceived(LiveScoutFeed sender, MatchDataEntity matchData)
Invoked by the observedLiveScoutFeed
when match data is received.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchData
- TheMatchListEntity
representing the received match data.
-
onMatchUpdateReceived
void onMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when 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
- TheLiveScoutFeed
sender of the event.matchUpdate
- TheMatchUpdateEntity
representing the received match-update message
-
onFullMatchUpdateReceived
void onFullMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when full match update is received. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)
- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchUpdate
- TheMatchUpdateEntity
representing the received match-update message
-
onFullPaginatedMatchUpdateReceived
void onFullPaginatedMatchUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when 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
- TheLiveScoutFeed
sender of the event.matchUpdate
- TheMatchUpdateEntity
representing the received match-update message
-
onMatchDeltaUpdateReceived
void onMatchDeltaUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when match delta update is received. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)
- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchUpdate
- TheMatchUpdateEntity
representing the received match-update message
-
onMatchDeltaUpdateUpdateReceived
void onMatchDeltaUpdateUpdateReceived(LiveScoutFeed sender, MatchUpdateEntity matchUpdate)
Invoked by the observedLiveScoutFeed
when match delta update delta message is received. For more information see theonMatchUpdateReceived(LiveScoutFeed, MatchUpdateEntity)
- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchUpdate
- TheMatchUpdateEntity
representing the received match-update message
-
onMatchListReceived
void onMatchListReceived(LiveScoutFeed sender, MatchListEntity matchList)
Invoked by the observedLiveScoutFeed
when match list requested by the user is received.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchList
- TheMatchListEntity
representing the received match list.
-
onMatchListUpdateReceived
void onMatchListUpdateReceived(LiveScoutFeed sender, MatchListUpdateEntity matchList)
Invoked by the observedLiveScoutFeed
when an unsolicited match list is received.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchList
-MatchListUpdateEntity
representing the received match list.
-
onMatchStopped
void onMatchStopped(LiveScoutFeed sender, MatchStopEntity matchStop)
Invoked by the observedLiveScoutFeed
after the was un-subscribed from a match or if subscription to a match failed.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.matchStop
- TheMatchStopEntity
representing the un-subscription message
-
onServerTimeReceived
void onServerTimeReceived(LiveScoutFeed sender, ServerTimeEntity serverTime)
Server time request response- Parameters:
sender
- TheLiveScoutFeed
sender of the event.serverTime
- TheServerTimeEntity
representing the received server time.
-
onClosed
void onClosed(LiveScoutFeed sender)
Invoked when the feed is closed.- Parameters:
sender
- TheLiveScoutFeed
sender of the event.
-
-