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.

Instance fields

  • tag

    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 isAdmin method 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 }
  • app

    The application who did the action. - note: Ensure the isApp method 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 isReseller method 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 isUser method 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 }

Constructors

  • 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

    admin

    The 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

    app

    The 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

    reseller

    Action 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

    user

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

Tag state methods

  • Retrieves whether the union’s current tag state has value “admin”.

    Note

    Call this method and ensure it returns true before accessing the admin property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isAdmin;

    Swift

    func isAdmin() -> Bool

    Return 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() -> Bool

    Return 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 app property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isApp;

    Swift

    func isApp() -> Bool

    Return 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() -> Bool

    Return 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 reseller property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isReseller;

    Swift

    func isReseller() -> Bool

    Return 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 user property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isUser;

    Swift

    func isUser() -> Bool

    Return 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() -> 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.