DBTEAMLOGParticipantLogInfo

Objective-C

@interface DBTEAMLOGParticipantLogInfo : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLOGParticipantLogInfo : NSObject, DBSerializable, NSCopying

The ParticipantLogInfo union.

A user or group

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “group”.

    Description of the “group” tag state: Group details.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGroup:(nonnull DBTEAMLOGGroupLogInfo *)group;

    Swift

    init(group: DBTEAMLOGGroupLogInfo)

    Parameters

    group

    Group details.

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “user”.

    Description of the “user” tag state: A user with a Dropbox account.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUser:(nonnull DBTEAMLOGUserLogInfo *)user;

    Swift

    init(user: DBTEAMLOGUserLogInfo)

    Parameters

    user

    A user with a Dropbox account.

    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 “group”.

    Note

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

    Declaration

    Objective-C

    - (BOOL)isGroup;

    Swift

    func isGroup() -> Bool

    Return Value

    Whether the union’s current tag state has value “group”.

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