DBTEAMGroupMembersSetAccessTypeArg
Objective-C
@interface DBTEAMGroupMembersSetAccessTypeArg
: DBTEAMGroupMemberSelector <DBSerializable, NSCopying>
Swift
class DBTEAMGroupMembersSetAccessTypeArg : DBTEAMGroupMemberSelector, DBSerializable, NSCopying
The GroupMembersSetAccessTypeArg
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
New group access type the user will have.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMGroupAccessType *_Nonnull accessType;
Swift
var accessType: DBTEAMGroupAccessType { get }
-
Whether to return the list of members in the group. Note that the default value will cause all the group members to be returned in the response. This may take a long time for large groups.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull returnMembers;
Swift
var returnMembers: NSNumber { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithGroup:(nonnull DBTEAMGroupSelector *)group user:(nonnull DBTEAMUserSelectorArg *)user accessType: (nonnull DBTEAMGroupAccessType *)accessType returnMembers:(nullable NSNumber *)returnMembers;
Swift
init(group: DBTEAMGroupSelector, user: DBTEAMUserSelectorArg, accessType: DBTEAMGroupAccessType, returnMembers: NSNumber?)
Parameters
group
Specify a group.
user
Identity of a user that is a member of group.
accessType
New group access type the user will have.
returnMembers
Whether to return the list of members in the group. Note that the default value will cause all the group members to be returned in the response. This may take a long time for large groups.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithGroup:(nonnull DBTEAMGroupSelector *)group user:(nonnull DBTEAMUserSelectorArg *)user accessType: (nonnull DBTEAMGroupAccessType *)accessType;
Swift
init(group: DBTEAMGroupSelector, user: DBTEAMUserSelectorArg, accessType: DBTEAMGroupAccessType)
Parameters
group
Specify a group.
user
Identity of a user that is a member of group.
accessType
New group access type the user will have.
Return Value
An initialized instance.