All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sportradar.unifiedodds.sdk.oddsentities.MarketStatus Maven / Gradle / Ivy

/*
 * Copyright (C) Sportradar AG. See LICENSE for full license governing this code
 */

package com.sportradar.unifiedodds.sdk.oddsentities;

import com.sportradar.uf.datamodel.UFMarketStatus;

/**
 * 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 *
*/ public enum MarketStatus { Active, Suspended, Deactivated, Settled, Cancelled, HandedOver; public static MarketStatus fromFeedValue(UFMarketStatus status) { if (status == null) { return MarketStatus.Active; } else { switch (status) { case ACTIVE: return MarketStatus.Active; case INACTIVE: return MarketStatus.Deactivated; case SUSPENDED: return MarketStatus.Suspended; case HANDED_OVER: return MarketStatus.HandedOver; case SETTLED: return MarketStatus.Settled; case CANCELLED: return MarketStatus.Cancelled; default: return null; } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy