BusinessHoursInfo

@JsonClass(generateAdapter = true)
data class BusinessHoursInfo(val name: String, val isActive: Boolean, val businessHours: List<BusinessHours>, val requestTimestamp: Long)

The information needed to determine a deployment's business hours.

Parameters

name

The name of the business hours in Setup.

isActive

A Boolean value to determine whether business hours are currently active in Setup.

businessHours

A List of BusinessHours representing intervals across a 24-hour period.

requestTimestamp

The time when the request was made, in milliseconds since the epoch.

Constructors

Link copied to clipboard
constructor(name: String, isActive: Boolean, businessHours: List<BusinessHours>, requestTimestamp: Long)

Properties

Link copied to clipboard
Link copied to clipboard
val isActive: Boolean
Link copied to clipboard
val name: String
Link copied to clipboard

Functions

Link copied to clipboard
fun isWithinBusinessHours(time: Long = Date().time): Boolean

A function to determine whether the current time is within the given business hours.