DBTEAMLOGActorLogInfo
Objective-C
@interface DBTEAMLOGActorLogInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGActorLogInfo : NSObject, DBSerializable, NSCopying
The ActorLogInfo union.
The entity who performed the action.
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) DBTEAMLOGActorLogInfoTag tag;Swift
var tag: DBTEAMLOGActorLogInfoTag { get } -
The admin who did the action. - note: Ensure the
isAdminmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGUserLogInfo *_Nonnull admin;Swift
var admin: DBTEAMLOGUserLogInfo { get } -
The application who did the action. - note: Ensure the
isAppmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGAppLogInfo *_Nonnull app;Swift
var app: DBTEAMLOGAppLogInfo { get } -
Action done by reseller. - note: Ensure the
isResellermethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGResellerLogInfo *_Nonnull reseller;Swift
var reseller: DBTEAMLOGResellerLogInfo { get } -
The user who did the action. - note: Ensure the
isUsermethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGUserLogInfo *_Nonnull user;Swift
var user: DBTEAMLOGUserLogInfo { get }
-
Initializes union class with tag state of “admin”.
Description of the “admin” tag state: The admin who did the action.
Declaration
Objective-C
- (nonnull instancetype)initWithAdmin:(nonnull DBTEAMLOGUserLogInfo *)admin;Swift
init(admin: DBTEAMLOGUserLogInfo)Parameters
adminThe admin who did the action.
Return Value
An initialized instance.
-
Initializes union class with tag state of “anonymous”.
Description of the “anonymous” tag state: Anonymous actor.
Declaration
Objective-C
- (nonnull instancetype)initWithAnonymous;Swift
init(anonymous: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “app”.
Description of the “app” tag state: The application who did the action.
Declaration
Objective-C
- (nonnull instancetype)initWithApp:(nonnull DBTEAMLOGAppLogInfo *)app;Swift
init(app: DBTEAMLOGAppLogInfo)Parameters
appThe application who did the action.
Return Value
An initialized instance.
-
Initializes union class with tag state of “dropbox”.
Description of the “dropbox” tag state: Action done by Dropbox.
Declaration
Objective-C
- (nonnull instancetype)initWithDropbox;Swift
init(dropbox: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “reseller”.
Description of the “reseller” tag state: Action done by reseller.
Declaration
Objective-C
- (nonnull instancetype)initWithReseller: (nonnull DBTEAMLOGResellerLogInfo *)reseller;Swift
init(reseller: DBTEAMLOGResellerLogInfo)Parameters
resellerAction done by reseller.
Return Value
An initialized instance.
-
Initializes union class with tag state of “user”.
Description of the “user” tag state: The user who did the action.
Declaration
Objective-C
- (nonnull instancetype)initWithUser:(nonnull DBTEAMLOGUserLogInfo *)user;Swift
init(user: DBTEAMLOGUserLogInfo)Parameters
userThe user who did the action.
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”.
Note
Call this method and ensure it returns true before accessing the
adminproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isAdmin;Swift
func isAdmin() -> BoolReturn Value
Whether the union’s current tag state has value “admin”.
-
Retrieves whether the union’s current tag state has value “anonymous”.
Declaration
Objective-C
- (BOOL)isAnonymous;Swift
func isAnonymous() -> BoolReturn Value
Whether the union’s current tag state has value “anonymous”.
-
Retrieves whether the union’s current tag state has value “app”.
Note
Call this method and ensure it returns true before accessing the
appproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isApp;Swift
func isApp() -> BoolReturn Value
Whether the union’s current tag state has value “app”.
-
Retrieves whether the union’s current tag state has value “dropbox”.
Declaration
Objective-C
- (BOOL)isDropbox;Swift
func isDropbox() -> BoolReturn Value
Whether the union’s current tag state has value “dropbox”.
-
Retrieves whether the union’s current tag state has value “reseller”.
Note
Call this method and ensure it returns true before accessing the
resellerproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isReseller;Swift
func isReseller() -> BoolReturn Value
Whether the union’s current tag state has value “reseller”.
-
Retrieves whether the union’s current tag state has value “user”.
Note
Call this method and ensure it returns true before accessing the
userproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isUser;Swift
func isUser() -> BoolReturn Value
Whether the union’s current tag state has value “user”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn 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() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBTEAMLOGActorLogInfo Class Reference