RatingScaleItemValue

Defines the value for one rating in a custom metric rating scale.

Inheritors

Types

Link copied to clipboard
data class FloatValue(val value: Float) : RatingScaleItemValue

A floating point number representing the value for a rating in a custom metric rating scale.

Link copied to clipboard
Link copied to clipboard
data class StringValue(val value: String) : RatingScaleItemValue

A string representing the value for a rating in a custom metric rating scale.

Functions

Link copied to clipboard

Casts this RatingScaleItemValue as a FloatValue and retrieves its kotlin.Float value. Throws an exception if the RatingScaleItemValue is not a FloatValue.

Link copied to clipboard

Casts this RatingScaleItemValue as a FloatValue and retrieves its kotlin.Float value. Returns null if the RatingScaleItemValue is not a FloatValue.

Link copied to clipboard

Casts this RatingScaleItemValue as a StringValue and retrieves its kotlin.String value. Throws an exception if the RatingScaleItemValue is not a StringValue.

Link copied to clipboard

Casts this RatingScaleItemValue as a StringValue and retrieves its kotlin.String value. Returns null if the RatingScaleItemValue is not a StringValue.