DBTEAMMembersSetPermissions2Result
Objective-C
@interface DBTEAMMembersSetPermissions2Result
: NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMMembersSetPermissions2Result : NSObject, DBSerializable, NSCopying
The MembersSetPermissions2Result
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The member ID of the user to which the change was applied.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull teamMemberId;
Swift
var teamMemberId: String { get }
-
The roles after the change. Empty in case the user become a non-admin.
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) initWithTeamMemberId:(nonnull NSString *)teamMemberId roles:(nullable NSArray<DBTEAMTeamMemberRole *> *)roles;
Swift
init(teamMemberId: String, roles: [DBTEAMTeamMemberRole]?)
Parameters
teamMemberId
The member ID of the user to which the change was applied.
roles
The roles after the change. Empty in case the user become a non-admin.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithTeamMemberId:(nonnull NSString *)teamMemberId;
Swift
init(teamMemberId: String)
Parameters
teamMemberId
The member ID of the user to which the change was applied.
Return Value
An initialized instance.