Class MessageInterest
- Namespace
- Sportradar.OddsFeed.SDK.Api.Config
- Assembly
- Sportradar.OddsFeed.SDK.dll
Defines which messages will be provided by feed
public class MessageInterest
- Inheritance
-
MessageInterest
- Inherited Members
Fields
AllMessages
Constructs a MessageInterest indicating an interest in all messages
public static readonly MessageInterest AllMessages
Field Value
- MessageInterest
A MessageInterest indicating an interest in all messages
DefinedInterests
Gets all available MessageInterest instances
public static readonly IEnumerable<MessageInterest> DefinedInterests
Field Value
HighPriorityMessages
Constructs a MessageInterest indicating an interest in hi priority messages
public static readonly MessageInterest HighPriorityMessages
Field Value
- MessageInterest
A MessageInterest indicating an interest in high priority messages
LiveMessagesOnly
Constructs a MessageInterest indicating an interest in live messages
public static readonly MessageInterest LiveMessagesOnly
Field Value
- MessageInterest
A MessageInterest indicating an interest in live messages
LowPriorityMessages
Constructs a MessageInterest indicating an interest in low priority messages
public static readonly MessageInterest LowPriorityMessages
Field Value
- MessageInterest
A MessageInterest indicating an interest in low priority messages
MessageScopes
List of MessageInterest representing defined messages scopes
public static readonly MessageInterest[] MessageScopes
Field Value
PrematchMessagesOnly
Constructs a MessageInterest indicating an interest in pre-match messages
public static readonly MessageInterest PrematchMessagesOnly
Field Value
- MessageInterest
A MessageInterest indicating an interest in pre-match messages
VirtualSportMessages
Constructs a MessageInterest indicating an interest in messages for virtual sports
public static readonly MessageInterest VirtualSportMessages
Field Value
- MessageInterest
A MessageInterest indicating an interest in messages for virtual sports
Properties
IsScopeInterest
Gets the value indicating whether the current interest is a scope interest (live, prematch or virt)
public bool IsScopeInterest { get; }
Property Value
Name
Gets the name of the message interest
public string Name { get; }
Property Value
ProducerId
Gets the routing key used to select appropriate AMQP exchange
public int ProducerId { get; }
Property Value
Methods
FromScope(string)
Gets a MessageInterest representing a scope specified by it's name.
public static MessageInterest FromScope(string scopeName)
Parameters
scopeNamestringThe name of the scope
Returns
- MessageInterest
The MessageInterest representing a scope specified by it's name.
IsCombinationValid(IEnumerable<MessageInterest>)
Determines whether the provided list of MessageInterest is a valid combination of sessions
public static bool IsCombinationValid(IEnumerable<MessageInterest> interests)
Parameters
interestsIEnumerable<MessageInterest>
Returns
- bool
True if the provided combination is valid. Otherwise false
SpecificEventsOnly(IEnumerable<Urn>)
Constructs a MessageInterest indicating an interest in messages associated with specific events
public static MessageInterest SpecificEventsOnly(IEnumerable<Urn> eventIds)
Parameters
eventIdsIEnumerable<Urn>A IEnumerable<T> specifying the target events
Returns
- MessageInterest
A MessageInterest indicating an interest in messages associated with specific events
ToString()
Constructs a string representation of the current instance
public override string ToString()
Returns
- string
Returns current instance represented as string