DBSHARINGTeamMemberInfo
Objective-C
@interface DBSHARINGTeamMemberInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGTeamMemberInfo : NSObject, DBSerializable, NSCopying
The TeamMemberInfo struct.
Information about a team member.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Information about the member’s team.
Declaration
Objective-C
@property (nonatomic, readonly) DBUSERSTeam *_Nonnull teamInfo;Swift
var teamInfo: DBUSERSTeam { get } -
The display name of the user.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull displayName;Swift
var displayName: String { get } -
ID of user as a member of a team. This field will only be present if the member is in the same team as current user.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *memberId;Swift
var memberId: String? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithTeamInfo:(nonnull DBUSERSTeam *)teamInfo displayName:(nonnull NSString *)displayName memberId:(nullable NSString *)memberId;Swift
init(teamInfo: DBUSERSTeam, displayName: String, memberId: String?)Parameters
teamInfoInformation about the member’s team.
displayNameThe display name of the user.
memberIdID of user as a member of a team. This field will only be present if the member is in the same team as current user.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithTeamInfo:(nonnull DBUSERSTeam *)teamInfo displayName:(nonnull NSString *)displayName;Swift
init(teamInfo: DBUSERSTeam, displayName: String)Parameters
teamInfoInformation about the member’s team.
displayNameThe display name of the user.
Return Value
An initialized instance.
View on GitHub
DBSHARINGTeamMemberInfo Class Reference