Package com.caplin.streamlink
Enum Class PayloadType
- All Implemented Interfaces:
Serializable
,Comparable<PayloadType>
,Constable
Enumeration defining the types of payload used on commands
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe payload should be an object that can be serialized to JSON.The payload should be a map of field names to values or a list of name, value tuples.The payload should be of type SubjectType. -
Method Summary
Modifier and TypeMethodDescriptionstatic PayloadType
Returns the enum constant of this class with the specified name.static PayloadType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBJECT_TYPE
The payload should be of type SubjectType.
-
RECORD
The payload should be a map of field names to values or a list of name, value tuples.
-
JSON
The payload should be an object that can be serialized to JSON.
-
-
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
-