RoutingResultPayload
@JsonClass(generateAdapter = true)
The outcome of a routing operation, indicating whether an agent was assigned or routing failed.
Samples
val payload = entry.payload as? EntryPayload.RoutingResultPayload ?: return
if (payload.failureType == RoutingFailureType.None) {
showAgentAssigned()
} else {
showRoutingFailed(payload.failureReason)
}
if (payload.isEwtAvailable) {
showEstimatedWaitTime(payload.estimatedWaitTime)
}Content copied to clipboard
Constructors
Link copied to clipboard
constructor(id: String, recordId: String? = null, failureType: RoutingFailureType, routingType: RoutingType, failureReason: String? = null, estimatedWaitTime: EstimatedWaitTime? = null)