retrieveBusinessHours

Retrieves the BusinessHoursInfo for the current deployment.

Use this to determine whether the messaging service is currently available based on the configured business hours in Salesforce setup.

Return

Result.Success containing the BusinessHoursInfo, or Result.Error on failure.

Samples

val result = coreClient.retrieveBusinessHours()
if (result is Result.Success) {
    val businessHours = result.data
    // Show/hide messaging UI based on availability
}