DBTEAMCOMMONTimeRange
Objective-C
@interface DBTEAMCOMMONTimeRange : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMCOMMONTimeRange : NSObject, DBSerializable, NSCopying
The TimeRange
struct.
Time range.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Optional starting time (inclusive).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *startTime;
Swift
var startTime: Date? { get }
-
Optional ending time (exclusive).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *endTime;
Swift
var endTime: Date? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithStartTime:(nullable NSDate *)startTime endTime:(nullable NSDate *)endTime;
Swift
init(startTime: Date?, endTime: Date?)
Parameters
startTime
Optional starting time (inclusive).
endTime
Optional ending time (exclusive).
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initDefault;
Swift
init(default: ())
Return Value
An initialized instance.