ZendriveShiftInterval
@interface ZendriveShiftInterval : NSObject
Wrapper for a single business hour interval.
-
Start time of the shift interval, indicates when the shift interval starts.
Declaration
Objective-C
@property (nonatomic, nonnull) ZendriveShiftTime *startTime; -
End time of the shift interval, indicates when the shift interval ends.
Declaration
Objective-C
@property (nonatomic, nonnull) ZendriveShiftTime *endTime; -
Initializer the shift interval object with start time and end time.
Declaration
Objective-C
- (nonnull id)initWithStartTime:(ZendriveShiftTime *_Nonnull)startTime endTime:(ZendriveShiftTime *_Nonnull)endTime; -
Initialize the shift interval object with dictionary containing start_time and end_time keys. Example input dictionary:
NSDictionary *dictionary = { @"start_time": { @"day_of_week": @"Sunday", @"hour": 11, @"minute": 30 }, @"end_time": { @"day_of_week": @"Sunday", @"hour": 14, @"minute": 0 } }Declaration
Objective-C
- (nonnull id)initWithDictionary:(NSDictionary *_Nonnull)dictionary; -
Converts the shift detail object to dictionary. This can be used for logging the shift interval. Example:
NSDictionary *resultantDictionary = { @"start_time": { @"day_of_week": @"Sunday", @"hour": 11, @"minute": 30 }, @"end_time": { @"day_of_week": @"Sunday", @"hour": 14, @"minute": 0 } }Declaration
Objective-C
- (nonnull NSDictionary *)toDictionary;
ZendriveShiftInterval Class Reference