Click or drag to resize

ILiveOddsCommonBaseGetEventStatus Method

Requests the match status for a given time ("current" server request). This includes odds, activation of odds and match status for the match requested, current bet status and all bet clearing messages before the timestamp.

Namespace: Sportradar.SDK.FeedProviders.LiveOdds.Common
Assembly: LiveOddsFeedProvider (in LiveOddsFeedProvider.dll) Version: 2.28.0.0
Syntax
C#
long GetEventStatus(
	long event_id,
	DateTime? from = null,
	bool package = true
)

Parameters

event_id  Int64
Match id
from  NullableDateTime  (Optional)
Match status on particular time (leave null for current match status)
package  Boolean  (Optional)
All replies get packaged in one see OnEventStatus when true; else normal events will get invoked.

Return Value

Int64
Returns immediately with the request number or zero but expect to receive an event afterwards.
Remarks
SDK already handles error recovery for on-going matches, no matter whether there is a crash or connection to the server is lost, so during normal operation there should be no need to call this method! The purpose of it is for book-keeping after a match has ended. For instance after a match is not active anymore you might want to settle all open bets or check whether a match is really about to start. Notice that the match messages do not include a message number (msgnr). The received "state" is an abstract concept derived from the sent messages not any sent message so it cannot have a sequence number. If you are interested in replaying certain messages for a match you could try GetEventMessages(Int64, NullableInt64, NullableInt64, Boolean).
See Also