Number

data class Number(val value: Double) : ContactMetricValue

The numeric value of the metric result. For POSITION_IN_QUEUE, this represents the contact's current position in the queue (e.g., 3.00 means third in line). For ESTIMATED_WAIT_TIME, this represents the predicted wait time in seconds (e.g., 120.00 means approximately 2 minutes).

Constructors

Link copied to clipboard
constructor(value: Double)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard

Casts this ContactMetricValue as a Number and retrieves its kotlin.Double value. Throws an exception if the ContactMetricValue is not a Number.

Link copied to clipboard

Casts this ContactMetricValue as a Number and retrieves its kotlin.Double value. Returns null if the ContactMetricValue is not a Number.