DBTEAMTeamMemberInfoV2
Objective-C
@interface DBTEAMTeamMemberInfoV2 : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMTeamMemberInfoV2 : NSObject, DBSerializable, NSCopying
The TeamMemberInfoV2
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.
-
Profile of a user as a member of a team.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamMemberProfile *_Nonnull profile;
Swift
var profile: DBTEAMTeamMemberProfile { get }
-
The user’s roles in the team.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSArray<DBTEAMTeamMemberRole *> *roles;
Swift
var roles: [DBTEAMTeamMemberRole]? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithProfile:(nonnull DBTEAMTeamMemberProfile *)profile roles:(nullable NSArray<DBTEAMTeamMemberRole *> *)roles;
Swift
init(profile: DBTEAMTeamMemberProfile, roles: [DBTEAMTeamMemberRole]?)
Parameters
profile
Profile of a user as a member of a team.
roles
The user’s roles in the team.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithProfile: (nonnull DBTEAMTeamMemberProfile *)profile;
Swift
init(profile: DBTEAMTeamMemberProfile)
Parameters
profile
Profile of a user as a member of a team.
Return Value
An initialized instance.