Class LiveScoutFeedProvider
- Namespace
- Sportradar.LiveData.Sdk.FeedProviders.LiveScout
- Assembly
- Sportradar.LiveData.Sdk.dll
public class LiveScoutFeedProvider : ILiveScout, ILiveFeeds, IStartable, IFeedDispatcher
- Inheritance
-
LiveScoutFeedProvider
- Implements
- Inherited Members
Fields
m_expire_match_timer
protected Timer m_expire_match_timer
Field Value
m_interesting_matches
protected IDictionary<long, DateTime> m_interesting_matches
Field Value
m_proto_provider
protected IProtocolProvider m_proto_provider
Field Value
m_was_disconnected
protected volatile bool m_was_disconnected
Field Value
Properties
AvailableTranslations
Language codes of the currently available translations.
public virtual string[] AvailableTranslations { get; }
Property Value
- string[]
ProviderType
public ProtocolProviderType ProviderType { get; }
Property Value
SubscribedEvents
All event ids we are currently subscribed to.
public virtual long[] SubscribedEvents { get; }
Property Value
- long[]
Methods
DispatchEntity(EntityBase)
public DispatchStatus DispatchEntity(EntityBase entity)
Parameters
entityEntityBase
Returns
Start()
Start component.
public void Start()
Remarks
The component should be initialized first.
Stop()
Stop / shutdown component.
public void Stop()
Events
OnClosed
Signals that the underlaying connection has been closed (disconnect)
public event EventHandler<ConnectionChangeEventArgs> OnClosed
Event Type
OnFeedError
Signals that a feed error has occurred (e.g. we got disconnected from the feed server, XML message parsing error occurred).
public virtual event EventHandler<FeedErrorEventArgs> OnFeedError
Event Type
Remarks
It is suggested that this event handler is wired to some Monitoring Service
OnLineups
Player lineups for both teams were received.
public virtual event EventHandler<LineupsEventArgs> OnLineups
Event Type
Remarks
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).
OnLoginFailed
public event EventHandler<LoginFailedEventArgs> OnLoginFailed
Event Type
OnMatchBookingReply
Reply sent when a client books a match. If match booking failed for some reason (match already bought, match finished etc.), the reply will contain additional explanation.
public virtual event EventHandler<MatchBookingReplyEventArgs> OnMatchBookingReply
Event Type
OnMatchData
Occurs when [on match data].
public virtual event EventHandler<MatchDataEventArgs> OnMatchData
Event Type
OnMatchList
Signals that a list of matches in the time frame requested by the client has been received.
public virtual event EventHandler<MatchListEventArgs> OnMatchList
Event Type
OnMatchListUpdate
Signals that an unsolicited list of matches has been received.
public virtual event EventHandler<MatchListEventArgs> OnMatchListUpdate
Event Type
OnMatchStop
Reply sent after client unsubscribed from a match. It could also be sent if match subscription failed for any reason (e.g. too many match subscriptions).
public virtual event EventHandler<MatchStopEventArgs> OnMatchStop
Event Type
OnMatchUpdate
Signals that a match update message was received. There are three types of match information messages: full match feed, delta match feed and delta update feed (see MatchHeader.TypeOfFeed). 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).
public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdate
Event Type
OnMatchUpdateDelta
Delta match update event. See OnMatchUpdate for more info.
public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateDelta
Event Type
OnMatchUpdateDeltaUpdate
Delta update match update event. See OnMatchUpdate for more info.
public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateDeltaUpdate
Event Type
OnMatchUpdateFull
Full match update event. See OnMatchUpdate for more info.
public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateFull
Event Type
OnMatchUpdateFullPaginated
Paginated full match update event.
public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateFullPaginated
Event Type
OnOpened
Signals that the underlaying connection has been opened (connect)
public event EventHandler<ConnectionChangeEventArgs> OnOpened
Event Type
OnScoutInfo
Signals some basic information about the match. Sent out when a client subscribes to a match.
public virtual event EventHandler<ScoutInfoEventArgs> OnScoutInfo