Properties:
Name | Type | Attributes | Description |
---|---|---|---|
matchId |
string |
<required> |
Sportradar match ID. |
marketId |
number | string |
<required> |
|
outcomeId |
number | string |
<required> |
|
srMarket |
SRMarket Widgets.CustomBet.CustomBet.SRMarket | ||
srOutcome |
string | ||
getSelection |
getSelection Widgets.CustomBet.CustomBet.UniqueOutcome.getSelection |
<required> |
|
toString |
toString Widgets.CustomBet.CustomBet.UniqueOutcome.toString |
<required> |
|
isSameMarket |
isSameMarket Widgets.CustomBet.CustomBet.UniqueOutcome.isSameMarket |
<required> |
|
equals |
equals Widgets.CustomBet.CustomBet.UniqueOutcome.equals |
<required> |
Example
{
matchId: '22223333',
marketId: 'oneXtwo',
outcomeId: 'x',
srMarket: '1',
srOutcome: '1'
}
Methods
# static equals(value) → {boolean}
Helper method that checks if outcome is equal to given UniqueOutcome.
Parameters
Name | Type | Description |
---|---|---|
value |
UniqueOutcome |
- Returns true if outcomes are equal.
boolean
# static getSelection() → {string}
Helper method that returns xml string representation of UniqueOutcome as needed by UOF calculation endpoint.
- Returns xml string representation of UniqueOutcome as needed by UOF calculation endpoint.
string
# static isSameMarket(value) → {boolean}
Helper method that check if outcome belongs to same market as given UniqueOutcome.
Parameters
Name | Type | Description |
---|---|---|
value |
UniqueOutcome |
- Returns true if outcomes have same market.
boolean
# static toString() → {string}
Helper method to check if outcome is equal to given UniqueOutcome.
- Returns string representation of UniqueOutcome.
string