DBTEAMLOGWebDeviceSessionLogInfo

@interface DBTEAMLOGWebDeviceSessionLogInfo
    : DBTEAMLOGDeviceSessionLogInfo <DBSerializable, NSCopying>

The WebDeviceSessionLogInfo struct.

Information on active web sessions

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Web session unique id. Might be missing due to historical data gap.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        DBTEAMLOGWebSessionLogInfo *sessionInfo;

    Swift

    var sessionInfo: DBTEAMLOGWebSessionLogInfo? { get }
  • Information on the hosting device.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull userAgent;

    Swift

    var userAgent: String { get }
  • os

    Information on the hosting operating system.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull os;

    Swift

    var os: String { get }
  • Information on the browser used for this web session.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull browser;

    Swift

    var browser: String { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithUserAgent:(nonnull NSString *)userAgent
                   os:(nonnull NSString *)os
              browser:(nonnull NSString *)browser
            ipAddress:(nullable NSString *)ipAddress
              created:(nullable NSDate *)created
              updated:(nullable NSDate *)updated
          sessionInfo:(nullable DBTEAMLOGWebSessionLogInfo *)sessionInfo;

    Swift

    init(userAgent: String, os: String, browser: String, ipAddress: String?, created: Date?, updated: Date?, sessionInfo: DBTEAMLOGWebSessionLogInfo?)

    Parameters

    userAgent

    Information on the hosting device.

    os

    Information on the hosting operating system.

    browser

    Information on the browser used for this web session.

    ipAddress

    The IP address of the last activity from this session. Might be missing due to historical data gap.

    created

    The time this session was created. Might be missing due to historical data gap.

    updated

    The time of the last activity from this session. Might be missing due to historical data gap.

    sessionInfo

    Web session unique id. Might be missing due to historical data gap.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserAgent:(nonnull NSString *)userAgent
                                           os:(nonnull NSString *)os
                                      browser:(nonnull NSString *)browser;

    Swift

    init(userAgent: String, os: String, browser: String)

    Parameters

    userAgent

    Information on the hosting device.

    os

    Information on the hosting operating system.

    browser

    Information on the browser used for this web session.

    Return Value

    An initialized instance.