Table of Contents

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

Timer

m_interesting_matches

protected IDictionary<long, DateTime> m_interesting_matches

Field Value

IDictionary<long, DateTime>

m_proto_provider

protected IProtocolProvider m_proto_provider

Field Value

IProtocolProvider

m_was_disconnected

protected volatile bool m_was_disconnected

Field Value

bool

Properties

AvailableTranslations

Language codes of the currently available translations.

public virtual string[] AvailableTranslations { get; }

Property Value

string[]

ProviderType

public ProtocolProviderType ProviderType { get; }

Property Value

ProtocolProviderType

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

entity EntityBase

Returns

DispatchStatus

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

EventHandler<ConnectionChangeEventArgs>

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

EventHandler<FeedErrorEventArgs>

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

EventHandler<LineupsEventArgs>

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

EventHandler<LoginFailedEventArgs>

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

EventHandler<MatchBookingReplyEventArgs>

OnMatchData

Occurs when [on match data].

public virtual event EventHandler<MatchDataEventArgs> OnMatchData

Event Type

EventHandler<MatchDataEventArgs>

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

EventHandler<MatchListEventArgs>

OnMatchListUpdate

Signals that an unsolicited list of matches has been received.

public virtual event EventHandler<MatchListEventArgs> OnMatchListUpdate

Event Type

EventHandler<MatchListEventArgs>

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

EventHandler<MatchStopEventArgs>

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

EventHandler<MatchUpdateEventArgs>

OnMatchUpdateDelta

Delta match update event. See OnMatchUpdate for more info.

public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateDelta

Event Type

EventHandler<MatchUpdateEventArgs>

OnMatchUpdateDeltaUpdate

Delta update match update event. See OnMatchUpdate for more info.

public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateDeltaUpdate

Event Type

EventHandler<MatchUpdateEventArgs>

OnMatchUpdateFull

Full match update event. See OnMatchUpdate for more info.

public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateFull

Event Type

EventHandler<MatchUpdateEventArgs>

OnMatchUpdateFullPaginated

Paginated full match update event.

public virtual event EventHandler<MatchUpdateEventArgs> OnMatchUpdateFullPaginated

Event Type

EventHandler<MatchUpdateEventArgs>

OnOpened

Signals that the underlaying connection has been opened (connect)

public event EventHandler<ConnectionChangeEventArgs> OnOpened

Event Type

EventHandler<ConnectionChangeEventArgs>

OnScoutInfo

Signals some basic information about the match. Sent out when a client subscribes to a match.

public virtual event EventHandler<ScoutInfoEventArgs> OnScoutInfo

Event Type

EventHandler<ScoutInfoEventArgs>