ShiftInterval
@objc(ZDShiftInterval)
public final class ShiftInterval : NSObject
Wrapper for a single business hour interval.
-
Start time of the shift interval, indicates when the shift interval starts.
Declaration
Swift
@objc public var startTime: ShiftTime
-
End time of the shift interval, indicates when the shift interval ends.
Declaration
Swift
@objc public var endTime: ShiftTime
-
Converts the shift interval object to dictionary Example
[ "start_time": [ "day_of_week": "Monday", "hour": 11, "minute": 0 ], "end_time": [ "day_of_week": "Monday", "hour": 14 "minute": 0 ] ] ]
Declaration
Swift
@objc public func toDictionary() -> [String : Any]?