Enum Class MarketStatus

java.lang.Object
java.lang.Enum<MarketStatus>
com.sportradar.unifiedodds.sdk.oddsentities.MarketStatus
All Implemented Interfaces:
Serializable, Comparable<MarketStatus>, java.lang.constant.Constable

public enum MarketStatus extends Enum<MarketStatus>
MarketStatus describes the status for a market (line) and it can be in one of three states
  • Active - Odds are provided and bets can be accepted
  • Suspended - Bets should not be accepted, but odds are still provided
  • Deactivated - Odds are no longer provided for this market.
  • Settled - Odds are no longer provided for this market and it has been settled.
  • Cancelled - Odds are no longer provided for this market as it has been cancelled.
  • HandedOver - A special signal, not an actual state, signals that this market is now handled by another odds producer
  • Enum Constant Details

  • Method Details

    • values

      public static MarketStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MarketStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromFeedValue

      public static MarketStatus fromFeedValue(com.sportradar.uf.datamodel.UfMarketStatus status)