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.
-
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 } -
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 }
-
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
userAgentInformation on the hosting device.
osInformation on the hosting operating system.
browserInformation on the browser used for this web session.
ipAddressThe IP address of the last activity from this session.
createdThe time this session was created.
updatedThe time of the last activity from this session.
sessionInfoWeb 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
userAgentInformation on the hosting device.
osInformation on the hosting operating system.
browserInformation on the browser used for this web session.
Return Value
An initialized instance.
View on GitHub
DBTEAMLOGWebDeviceSessionLogInfo Class Reference