DBTEAMDateRange

@interface 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).

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDate *startDate;

    Swift

    var startDate: Date? { get }
  • Optional ending date (exclusive).

    Declaration

    Objective-C

    @property (readonly, nonatomic, 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

    startDate

    Optional starting date (inclusive).

    endDate

    Optional 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.