DBTEAMDateRange
Objective-C
@interface DBTEAMDateRange : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMDateRange : NSObject, DBSerializable, NSCopying
The DateRange struct.
Input arguments that can be provided for most reports.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Optional starting date (inclusive). If start_date is None or too long ago, this field will be set to 6 months ago.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *startDate;Swift
var startDate: Date? { get } -
Optional ending date (exclusive).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *endDate;Swift
var endDate: Date? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithStartDate:(nullable NSDate *)startDate endDate:(nullable NSDate *)endDate;Swift
init(start startDate: Date?, end endDate: Date?)Parameters
startDateOptional starting date (inclusive). If start_date is None or too long ago, this field will be set to 6 months ago.
endDateOptional ending date (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.
View on GitHub
DBTEAMDateRange Class Reference