Class CashOutProbabilitiesImpl<T extends SportEvent>

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.oddsentities.CashOutProbabilitiesImpl<T>
All Implemented Interfaces:
CashOutProbabilities<T>, EventMessage<T>, MarketMessage<T>, Message

public class CashOutProbabilitiesImpl<T extends SportEvent> extends Object implements CashOutProbabilities<T>
Implements methods used to access event CashOut probabilities
  • Method Details

    • getBetstopReasonValue

      public NamedValue getBetstopReasonValue()
      Returns the betstop reason value descriptor
      Specified by:
      getBetstopReasonValue in interface CashOutProbabilities<T extends SportEvent>
      Returns:
      betstop reason value descriptor
    • getBetstopReason

      public String getBetstopReason()
      Returns the reason for the most recently sent betstop if the betstop is still active
      Specified by:
      getBetstopReason in interface CashOutProbabilities<T extends SportEvent>
      Returns:
      the reason for the most recently sent betstop if the betstop is still active (otherwise null)
    • getBettingStatusValue

      public NamedValue getBettingStatusValue()
      Returns the betting status value descriptor
      Specified by:
      getBettingStatusValue in interface CashOutProbabilities<T extends SportEvent>
      Returns:
      the betting status value descriptor
    • getBettingStatus

      public String getBettingStatus()
      If this field is set, it reports that a previous betstop was sent but the markets have now been reopened. A conservative bookmaker could keep the markets suspended. Previously, we call it that the markets are current in early betstart.
      Specified by:
      getBettingStatus in interface CashOutProbabilities<T extends SportEvent>
      Returns:
      the betting status - if set the affected markets are in early betstart otherwise null.
    • getMarkets

      public List<MarketWithProbabilities> getMarkets()
      Description copied from interface: MarketMessage
      Returns a list of markets that are affected by the associated message
      Specified by:
      getMarkets in interface CashOutProbabilities<T extends SportEvent>
      Specified by:
      getMarkets in interface MarketMessage<T extends SportEvent>
      Returns:
      the list of affected markets
    • getEvent

      public T getEvent()
      Returns the competition/match/race/outright this odds update is for
      Specified by:
      getEvent in interface EventMessage<T extends SportEvent>
      Returns:
      the competition/match this odds update is for
    • getRequestId

      public Long getRequestId()
      Returns the request id of the current message
      Specified by:
      getRequestId in interface EventMessage<T extends SportEvent>
      Returns:
      the request id of the current message
    • getRawMessage

      public byte[] getRawMessage()
      Returns the raw message as received from the producer
      Specified by:
      getRawMessage in interface EventMessage<T extends SportEvent>
      Returns:
      the raw message as received from the producer
    • getProducer

      public Producer getProducer()
      Returns the Producer that generated this message
      Specified by:
      getProducer in interface Message
      Returns:
      the Producer that generated this message
    • getTimestamps

      public MessageTimestamp getTimestamps()
      Gets the timestamps when the message was generated, sent, received and dispatched by the sdk
      Specified by:
      getTimestamps in interface Message
      Returns:
      gets the timestamps when the message was generated, sent, received and dispatched by the sdk