Enum Class ReportingStatus
- All Implemented Interfaces:
Serializable,Comparable<ReportingStatus>,java.lang.constant.Constable
An enum describing the reporting status of a sport event
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe reporting status of the sport event is currently liveThe reporting status of the sport event is not availableThe reporting status of the sport event is suspended or temporary lost contactThe reporting status of the sport event is unknown -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportingStatusvalueFromMessageStatus(com.sportradar.uf.datamodel.UfReportingStatus status) Maps the value received through a message to theReportingStatusstatic ReportingStatusReturns the enum constant of this class with the specified name.static ReportingStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NotAvailable
The reporting status of the sport event is not available -
Live
The reporting status of the sport event is currently live -
Suspended
The reporting status of the sport event is suspended or temporary lost contact -
Unknown
The reporting status of the sport event is unknown
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
valueFromMessageStatus
public static ReportingStatus valueFromMessageStatus(com.sportradar.uf.datamodel.UfReportingStatus status) Maps the value received through a message to theReportingStatus- Parameters:
status- - the sport event status received as a message- Returns:
- - if the received sport event status is in a known state, the mapped state; otherwise
Unknown
-
getIntValue
-