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.

Instance fields

Constructors

  • 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

    desktopDeviceSession

    desktop 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

    legacyDeviceSession

    legacy 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

    mobileDeviceSession

    mobile 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

    webDeviceSession

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

Tag state methods

  • 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 desktopDeviceSession property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isDesktopDeviceSession;

    Swift

    func isDesktopDeviceSession() -> Bool

    Return 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 legacyDeviceSession property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isLegacyDeviceSession;

    Swift

    func isLegacyDeviceSession() -> Bool

    Return 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 mobileDeviceSession property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isMobileDeviceSession;

    Swift

    func isMobileDeviceSession() -> Bool

    Return 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 webDeviceSession property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isWebDeviceSession;

    Swift

    func isWebDeviceSession() -> Bool

    Return 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() -> 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.