DBTEAMTeamMemberRole
Objective-C
@interface DBTEAMTeamMemberRole : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMTeamMemberRole : NSObject, DBSerializable, NSCopying
The TeamMemberRole
struct.
A role which can be attached to a team member. This replaces AdminTier; each AdminTier corresponds to a new TeamMemberRole with a matching name.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
A string containing encoded role ID. For roles defined by Dropbox, this is the same across all teams.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull roleId;
Swift
var roleId: String { get }
-
The role display name.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull name;
Swift
var name: String { get }
-
Role description. Describes which permissions come with this role.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull description_;
Swift
var description_: String { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithRoleId:(nonnull NSString *)roleId name:(nonnull NSString *)name description_:(nonnull NSString *)description_;
Swift
init(roleId: String, name: String, description_: String)
Parameters
roleId
A string containing encoded role ID. For roles defined by Dropbox, this is the same across all teams.
name
The role display name.
description_
Role description. Describes which permissions come with this role.
Return Value
An initialized instance.