ContactMetricValue

sealed class ContactMetricValue

Contains the numeric value of a contact metric result.

Inheritors

Types

Link copied to clipboard
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).

Link copied to clipboard

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.