Value

sealed class Value(val valueType: Value.ValueType)

Represents a value of an input response.

Parameters

valueType

The ValueType type of response value.

Inheritors

Constructors

Link copied to clipboard
protected constructor(valueType: Value.ValueType)

Types

Link copied to clipboard
class BooleanValue(val booleanValue: Boolean) : Value

Represents a boolean value of an input response.

Link copied to clipboard
object Companion
Link copied to clipboard
class DateTimeValue(val dateTimeValue: String) : Value

Represents a datetime value of an input response.

Link copied to clipboard
class DateValue(val dateValue: String) : Value

Represents a date value of an input response.

Link copied to clipboard
class DoubleValue(val doubleValue: Double) : Value

Represents a double value of an input response.

Link copied to clipboard
class IntegerValue(val integerValue: Int) : Value

Represents an integer value of an input response.

Link copied to clipboard
class ListValue(val listValue: List<Value>) : Value

Represents a list of values.

Link copied to clipboard

Represents a structured value.

Link copied to clipboard
class TextValue(val textValue: String) : Value

Represents a text value of an input response.

Link copied to clipboard

Fallback for unrecognized value types from the API. Prevents deserialization crashes when the backend introduces new types.

Link copied to clipboard
class UrlValue(val urlValue: Uri) : Value

Represents a URL value of an input response.

Link copied to clipboard
@JsonClass(generateAdapter = false)
enum ValueType : Enum<Value.ValueType>

An enum that defines Value.valueType form response types.

Properties

Link copied to clipboard