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
@JsonClass(generateAdapter = true)
class BooleanValue(val booleanValue: Boolean) : Value

Represents a boolean value of an input response.

Link copied to clipboard
object Companion
Link copied to clipboard
@JsonClass(generateAdapter = true)
class DateTimeValue(val dateTimeValue: String) : Value

Represents a datetime value of an input response.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class DateValue(val dateValue: String) : Value

Represents a date value of an input response.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class DoubleValue(val doubleValue: Double) : Value

Represents a double value of an input response.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class IntegerValue(val integerValue: Int) : Value

Represents an integer value of an input response.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class ListValue(val listValue: List<Value>) : Value

Represents a list of values.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class StructuredValue(val value: ExperienceTypeValue) : Value

Represents a structured value.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class TextValue(val textValue: String) : Value

Represents a text value of an input response.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class UnknownValue : Value

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

Link copied to clipboard
@JsonClass(generateAdapter = true)
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