DBTEAMLOGLinkedDeviceLogInfo
Objective-C
@interface DBTEAMLOGLinkedDeviceLogInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGLinkedDeviceLogInfo : NSObject, DBSerializable, NSCopying
The LinkedDeviceLogInfo union.
The device sessions that user is linked to.
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) DBTEAMLOGLinkedDeviceLogInfoTag tag;Swift
var tag: DBTEAMLOGLinkedDeviceLogInfoTag { get } -
desktop device session’s details. - note: Ensure the
isDesktopDeviceSessionmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGDesktopDeviceSessionLogInfo *_Nonnull desktopDeviceSession;Swift
var desktopDeviceSession: DBTEAMLOGDesktopDeviceSessionLogInfo { get } -
legacy device session’s details. - note: Ensure the
isLegacyDeviceSessionmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGLegacyDeviceSessionLogInfo *_Nonnull legacyDeviceSession;Swift
var legacyDeviceSession: DBTEAMLOGLegacyDeviceSessionLogInfo { get } -
mobile device session’s details. - note: Ensure the
isMobileDeviceSessionmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGMobileDeviceSessionLogInfo *_Nonnull mobileDeviceSession;Swift
var mobileDeviceSession: DBTEAMLOGMobileDeviceSessionLogInfo { get } -
web device session’s details. - note: Ensure the
isWebDeviceSessionmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGWebDeviceSessionLogInfo *_Nonnull webDeviceSession;Swift
var webDeviceSession: DBTEAMLOGWebDeviceSessionLogInfo { get }
-
Initializes union class with tag state of “desktop_device_session”.
Description of the “desktop_device_session” tag state: desktop device session’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithDesktopDeviceSession: (nonnull DBTEAMLOGDesktopDeviceSessionLogInfo *)desktopDeviceSession;Swift
init(desktopDeviceSession: DBTEAMLOGDesktopDeviceSessionLogInfo)Parameters
desktopDeviceSessiondesktop device session’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “legacy_device_session”.
Description of the “legacy_device_session” tag state: legacy device session’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithLegacyDeviceSession: (nonnull DBTEAMLOGLegacyDeviceSessionLogInfo *)legacyDeviceSession;Swift
init(legacyDeviceSession: DBTEAMLOGLegacyDeviceSessionLogInfo)Parameters
legacyDeviceSessionlegacy device session’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “mobile_device_session”.
Description of the “mobile_device_session” tag state: mobile device session’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithMobileDeviceSession: (nonnull DBTEAMLOGMobileDeviceSessionLogInfo *)mobileDeviceSession;Swift
init(mobileDeviceSession: DBTEAMLOGMobileDeviceSessionLogInfo)Parameters
mobileDeviceSessionmobile device session’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “web_device_session”.
Description of the “web_device_session” tag state: web device session’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithWebDeviceSession: (nonnull DBTEAMLOGWebDeviceSessionLogInfo *)webDeviceSession;Swift
init(webDeviceSession: DBTEAMLOGWebDeviceSessionLogInfo)Parameters
webDeviceSessionweb device session’s details.
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 “desktop_device_session”.
Note
Call this method and ensure it returns true before accessing the
desktopDeviceSessionproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isDesktopDeviceSession;Swift
func isDesktopDeviceSession() -> BoolReturn Value
Whether the union’s current tag state has value “desktop_device_session”.
-
Retrieves whether the union’s current tag state has value “legacy_device_session”.
Note
Call this method and ensure it returns true before accessing the
legacyDeviceSessionproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isLegacyDeviceSession;Swift
func isLegacyDeviceSession() -> BoolReturn Value
Whether the union’s current tag state has value “legacy_device_session”.
-
Retrieves whether the union’s current tag state has value “mobile_device_session”.
Note
Call this method and ensure it returns true before accessing the
mobileDeviceSessionproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isMobileDeviceSession;Swift
func isMobileDeviceSession() -> BoolReturn Value
Whether the union’s current tag state has value “mobile_device_session”.
-
Retrieves whether the union’s current tag state has value “web_device_session”.
Note
Call this method and ensure it returns true before accessing the
webDeviceSessionproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isWebDeviceSession;Swift
func isWebDeviceSession() -> BoolReturn Value
Whether the union’s current tag state has value “web_device_session”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn 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() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBTEAMLOGLinkedDeviceLogInfo Class Reference