DBTEAMLOGDurationLogInfo
Objective-C
@interface DBTEAMLOGDurationLogInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGDurationLogInfo : NSObject, DBSerializable, NSCopying
The DurationLogInfo
struct.
Represents a time duration: unit and amount
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Time unit.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGTimeUnit *_Nonnull unit;
Swift
var unit: DBTEAMLOGTimeUnit { get }
-
Amount of time.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull amount;
Swift
var amount: NSNumber { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithUnit:(nonnull DBTEAMLOGTimeUnit *)unit amount:(nonnull NSNumber *)amount;
Swift
init(unit: DBTEAMLOGTimeUnit, amount: NSNumber)
Parameters
unit
Time unit.
amount
Amount of time.
Return Value
An initialized instance.