Click or drag to resize

ILiveFeeds Interface

Live feeds base client interface.

Namespace: Sportradar.SDK.FeedProviders.Common
Assembly: FeedProviderCommon (in FeedProviderCommon.dll) Version: 2.28.0.0
Syntax
C#
public interface ILiveFeeds : IStartable

The ILiveFeeds type exposes the following members.

Properties
 NameDescription
Public propertyAvailableTranslations Language codes of the currently available translations.
Public propertyLastAliveMessage Get time when the last alive message from the server was received.
Public propertyLastServerMessage Get time when the last message from the server was received. This includes alive messages that are periodically sent.
Public propertyServerTime Get approximate server time.
Public propertySubscribedEvents All event ids we are currently subscribed to.
Top
Methods
 NameDescription
Public methodBookEvents Book the specified events. Booked events cannot be cancelled through this interface.
Public methodClearState

Clears complete state for this provider, that can otherwise be used in case of feed error recovery which can occur after every feed server reconnect or at initial SDK startup.

Public methodStart Start component.
(Inherited from IStartable)
Public methodStop Stop / shutdown component.
(Inherited from IStartable)
Public methodSubscribe Subscribe to specified events.
Public methodUnsubscribe Unsubscribe from the specified events. After this no more events associated with these event ids will be sent.
Top
Events
 NameDescription
Public eventOnFeedError Signals that a feed error has occurred (e.g. we got disconnected from the feed server, XML message parsing error occurred).
Top
See Also