DBTEAMLOGAccessMethodLogInfo
Objective-C
@interface DBTEAMLOGAccessMethodLogInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGAccessMethodLogInfo : NSObject, DBSerializable, NSCopying
The AccessMethodLogInfo
union.
Indicates the method in which the action was performed.
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) DBTEAMLOGAccessMethodLogInfoTag tag;
Swift
var tag: DBTEAMLOGAccessMethodLogInfoTag { get }
-
Admin console session details. - note: Ensure the
isAdminConsole
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGWebSessionLogInfo *_Nonnull adminConsole;
Swift
var adminConsole: DBTEAMLOGWebSessionLogInfo { get }
-
Api session details. - note: Ensure the
isApi
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGApiSessionLogInfo *_Nonnull api;
Swift
var api: DBTEAMLOGApiSessionLogInfo { get }
-
Content manager session details. - note: Ensure the
isContentManager
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGWebSessionLogInfo *_Nonnull contentManager;
Swift
var contentManager: DBTEAMLOGWebSessionLogInfo { get }
-
End user session details. - note: Ensure the
isEndUser
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGSessionLogInfo *_Nonnull endUser;
Swift
var endUser: DBTEAMLOGSessionLogInfo { get }
-
Enterprise console session details. - note: Ensure the
isEnterpriseConsole
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGWebSessionLogInfo *_Nonnull enterpriseConsole;
Swift
var enterpriseConsole: DBTEAMLOGWebSessionLogInfo { get }
-
Sign in as session details. - note: Ensure the
isSignInAs
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGWebSessionLogInfo *_Nonnull signInAs;
Swift
var signInAs: DBTEAMLOGWebSessionLogInfo { get }
-
Initializes union class with tag state of “admin_console”.
Description of the “admin_console” tag state: Admin console session details.
Declaration
Objective-C
- (nonnull instancetype)initWithAdminConsole: (nonnull DBTEAMLOGWebSessionLogInfo *)adminConsole;
Swift
init(adminConsole: DBTEAMLOGWebSessionLogInfo)
Parameters
adminConsole
Admin console session details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “api”.
Description of the “api” tag state: Api session details.
Declaration
Objective-C
- (nonnull instancetype)initWithApi:(nonnull DBTEAMLOGApiSessionLogInfo *)api;
Swift
init(api: DBTEAMLOGApiSessionLogInfo)
Parameters
api
Api session details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “content_manager”.
Description of the “content_manager” tag state: Content manager session details.
Declaration
Objective-C
- (nonnull instancetype)initWithContentManager: (nonnull DBTEAMLOGWebSessionLogInfo *)contentManager;
Swift
init(contentManager: DBTEAMLOGWebSessionLogInfo)
Parameters
contentManager
Content manager session details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “end_user”.
Description of the “end_user” tag state: End user session details.
Declaration
Objective-C
- (nonnull instancetype)initWithEndUser: (nonnull DBTEAMLOGSessionLogInfo *)endUser;
Swift
init(endUser: DBTEAMLOGSessionLogInfo)
Parameters
endUser
End user session details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “enterprise_console”.
Description of the “enterprise_console” tag state: Enterprise console session details.
Declaration
Objective-C
- (nonnull instancetype)initWithEnterpriseConsole: (nonnull DBTEAMLOGWebSessionLogInfo *)enterpriseConsole;
Swift
init(enterpriseConsole: DBTEAMLOGWebSessionLogInfo)
Parameters
enterpriseConsole
Enterprise console session details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “sign_in_as”.
Description of the “sign_in_as” tag state: Sign in as session details.
Declaration
Objective-C
- (nonnull instancetype)initWithSignInAs: (nonnull DBTEAMLOGWebSessionLogInfo *)signInAs;
Swift
init(signInAs: DBTEAMLOGWebSessionLogInfo)
Parameters
signInAs
Sign in as session 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 “admin_console”.
Note
Call this method and ensure it returns true before accessing the
adminConsole
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isAdminConsole;
Swift
func isAdminConsole() -> Bool
Return Value
Whether the union’s current tag state has value “admin_console”.
-
Retrieves whether the union’s current tag state has value “api”.
Note
Call this method and ensure it returns true before accessing the
api
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isApi;
Swift
func isApi() -> Bool
Return Value
Whether the union’s current tag state has value “api”.
-
Retrieves whether the union’s current tag state has value “content_manager”.
Note
Call this method and ensure it returns true before accessing the
contentManager
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isContentManager;
Swift
func isContentManager() -> Bool
Return Value
Whether the union’s current tag state has value “content_manager”.
-
Retrieves whether the union’s current tag state has value “end_user”.
Note
Call this method and ensure it returns true before accessing the
endUser
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isEndUser;
Swift
func isEndUser() -> Bool
Return Value
Whether the union’s current tag state has value “end_user”.
-
Retrieves whether the union’s current tag state has value “enterprise_console”.
Note
Call this method and ensure it returns true before accessing the
enterpriseConsole
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isEnterpriseConsole;
Swift
func isEnterpriseConsole() -> Bool
Return Value
Whether the union’s current tag state has value “enterprise_console”.
-
Retrieves whether the union’s current tag state has value “sign_in_as”.
Note
Call this method and ensure it returns true before accessing the
signInAs
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isSignInAs;
Swift
func isSignInAs() -> Bool
Return Value
Whether the union’s current tag state has value “sign_in_as”.
-
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.