DBTEAMLOGTimeUnit
Objective-C
@interface DBTEAMLOGTimeUnit : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGTimeUnit : NSObject, DBSerializable, NSCopying
The TimeUnit
union.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGTimeUnitTag tag;
Swift
var tag: DBTEAMLOGTimeUnitTag { get }
-
Initializes union class with tag state of “days”.
Declaration
Objective-C
- (nonnull instancetype)initWithDays;
Swift
init(days: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “hours”.
Declaration
Objective-C
- (nonnull instancetype)initWithHours;
Swift
init(hours: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “milliseconds”.
Declaration
Objective-C
- (nonnull instancetype)initWithMilliseconds;
Swift
init(milliseconds: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “minutes”.
Declaration
Objective-C
- (nonnull instancetype)initWithMinutes;
Swift
init(minutes: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “months”.
Declaration
Objective-C
- (nonnull instancetype)initWithMonths;
Swift
init(months: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “seconds”.
Declaration
Objective-C
- (nonnull instancetype)initWithSeconds;
Swift
init(seconds: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “weeks”.
Declaration
Objective-C
- (nonnull instancetype)initWithWeeks;
Swift
init(weeks: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “years”.
Declaration
Objective-C
- (nonnull instancetype)initWithYears;
Swift
init(years: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;
Swift
init(other: ())
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “days”.
Declaration
Objective-C
- (BOOL)isDays;
Swift
func isDays() -> Bool
Return Value
Whether the union’s current tag state has value “days”.
-
Retrieves whether the union’s current tag state has value “hours”.
Declaration
Objective-C
- (BOOL)isHours;
Swift
func isHours() -> Bool
Return Value
Whether the union’s current tag state has value “hours”.
-
Retrieves whether the union’s current tag state has value “milliseconds”.
Declaration
Objective-C
- (BOOL)isMilliseconds;
Swift
func isMilliseconds() -> Bool
Return Value
Whether the union’s current tag state has value “milliseconds”.
-
Retrieves whether the union’s current tag state has value “minutes”.
Declaration
Objective-C
- (BOOL)isMinutes;
Swift
func isMinutes() -> Bool
Return Value
Whether the union’s current tag state has value “minutes”.
-
Retrieves whether the union’s current tag state has value “months”.
Declaration
Objective-C
- (BOOL)isMonths;
Swift
func isMonths() -> Bool
Return Value
Whether the union’s current tag state has value “months”.
-
Retrieves whether the union’s current tag state has value “seconds”.
Declaration
Objective-C
- (BOOL)isSeconds;
Swift
func isSeconds() -> Bool
Return Value
Whether the union’s current tag state has value “seconds”.
-
Retrieves whether the union’s current tag state has value “weeks”.
Declaration
Objective-C
- (BOOL)isWeeks;
Swift
func isWeeks() -> Bool
Return Value
Whether the union’s current tag state has value “weeks”.
-
Retrieves whether the union’s current tag state has value “years”.
Declaration
Objective-C
- (BOOL)isYears;
Swift
func isYears() -> Bool
Return Value
Whether the union’s current tag state has value “years”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;
Swift
func isOther() -> Bool
Return Value
Whether the union’s current tag state has value “other”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;
Swift
func tagName() -> String
Return Value
A human-readable string representing the union’s current tag state.