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.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGParticipantLogInfoTag tag;Swift
var tag: DBTEAMLOGParticipantLogInfoTag { get } -
Group details. - note: Ensure the
isGroupmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGGroupLogInfo *_Nonnull group;Swift
var group: DBTEAMLOGGroupLogInfo { get } -
A user with a Dropbox account. - 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 “group”.
Description of the “group” tag state: Group details.
Declaration
Objective-C
- (nonnull instancetype)initWithGroup:(nonnull DBTEAMLOGGroupLogInfo *)group;Swift
init(group: DBTEAMLOGGroupLogInfo)Parameters
groupGroup 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
userA 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.
-
Retrieves whether the union’s current tag state has value “group”.
Note
Call this method and ensure it returns true before accessing the
groupproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isGroup;Swift
func isGroup() -> BoolReturn 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
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
DBTEAMLOGParticipantLogInfo Class Reference