DBTEAMGroupMembersAddArg
Objective-C
@interface DBTEAMGroupMembersAddArg
: DBTEAMIncludeMembersArg <DBSerializable, NSCopying>
Swift
class DBTEAMGroupMembersAddArg : DBTEAMIncludeMembersArg, DBSerializable, NSCopying
The GroupMembersAddArg
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Group to which users will be added.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMGroupSelector *_Nonnull group;
Swift
var group: DBTEAMGroupSelector { get }
-
List of users to be added to the group.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<DBTEAMMemberAccess *> *_Nonnull members;
Swift
var members: [DBTEAMMemberAccess] { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithGroup:(nonnull DBTEAMGroupSelector *)group members:(nonnull NSArray<DBTEAMMemberAccess *> *)members returnMembers:(nullable NSNumber *)returnMembers;
Swift
init(group: DBTEAMGroupSelector, members: [DBTEAMMemberAccess], returnMembers: NSNumber?)
Parameters
group
Group to which users will be added.
members
List of users to be added to the group.
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 members:(nonnull NSArray<DBTEAMMemberAccess *> *) members;
Swift
init(group: DBTEAMGroupSelector, members: [DBTEAMMemberAccess])
Parameters
group
Group to which users will be added.
members
List of users to be added to the group.
Return Value
An initialized instance.