Availability

@Serializable
data class Availability(val online: Boolean = false, val withinHours: Boolean = true, val nextOpenAt: Instant? = null, val agentsOnline: Int = 0)

Whether the team can answer right now.

Constructors

Link copied to clipboard
constructor(online: Boolean = false, withinHours: Boolean = true, nextOpenAt: Instant? = null, agentsOnline: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "agents_online")
val agentsOnline: Int = 0

Number of agents online.

Link copied to clipboard
@Serializable(with = InstantOrNullSerializer::class)
@SerialName(value = "next_open_at")
val nextOpenAt: Instant? = null

When office hours next start.

Link copied to clipboard
val online: Boolean = false

Someone (or the bot) can reply now.

Link copied to clipboard
@SerialName(value = "within_hours")
val withinHours: Boolean = true

Inside office hours.