DBTEAMLOGWebDeviceSessionLogInfo

Objective-C

@interface DBTEAMLOGWebDeviceSessionLogInfo
    : DBTEAMLOGDeviceSessionLogInfo <DBSerializable, NSCopying>

Swift

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

Instance fields

  • Web session unique id.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var userAgent: String { get }
  • os

    Information on the hosting operating system.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var browser: String { get }

Constructors

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

    created

    The time this session was created.

    updated

    The time of the last activity from this session.

    sessionInfo

    Web session unique id.

    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.