Interface ICustomBetSelectionBuilder
- Namespace
- Sportradar.OddsFeed.SDK.Api.Managers
- Assembly
- Sportradar.OddsFeed.SDK.dll
Defines methods used to build selections
public interface ICustomBetSelectionBuilder
Methods
Build()
Builds and returns a ISelection instance
ISelection Build()
Returns
- ISelection
The constructed ISelection instance
Build(Urn, int, string, string, double?)
Builds and returns a ISelection instance
ISelection Build(Urn eventId, int marketId, string specifiers, string outcomeId, double? odds = null)
Parameters
eventIdUrnA Urn representing the event id
marketIdintA value representing the market id
specifiersstringA value representing the specifiers
outcomeIdstringA value representing the outcome id
oddsdouble?A odds value for the outcome
Returns
- ISelection
The constructed ISelection instance
SetEventId(Urn)
Sets event id to the provided Urn
ICustomBetSelectionBuilder SetEventId(Urn eventId)
Parameters
Returns
- ICustomBetSelectionBuilder
The ICustomBetSelectionBuilder instance used to set additional values
SetMarketId(int)
Sets market id to the provided value
ICustomBetSelectionBuilder SetMarketId(int marketId)
Parameters
marketIdintA value representing the market id
Returns
- ICustomBetSelectionBuilder
The ICustomBetSelectionBuilder instance used to set additional values
SetOdds(double)
Sets outcome odds to the provided value
ICustomBetSelectionBuilder SetOdds(double odds)
Parameters
oddsdoubleA value representing the outcome odds
Returns
- ICustomBetSelectionBuilder
The ICustomBetSelectionBuilder instance used to set additional values
SetOutcomeId(string)
Sets outcome id to the provided value
ICustomBetSelectionBuilder SetOutcomeId(string outcomeId)
Parameters
outcomeIdstringA value representing the outcome id
Returns
- ICustomBetSelectionBuilder
The ICustomBetSelectionBuilder instance used to set additional values
SetSpecifiers(string)
Sets specifiers to the provided value
ICustomBetSelectionBuilder SetSpecifiers(string specifiers)
Parameters
specifiersstringA value representing the specifiers
Returns
- ICustomBetSelectionBuilder
The ICustomBetSelectionBuilder instance used to set additional values