DBTEAMMembersAddArg

@interface DBTEAMMembersAddArg : NSObject <DBSerializable, NSCopying>

The MembersAddArg struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Details of new members to be added to the team.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSArray<DBTEAMMemberAddArg *> *_Nonnull dNewMembers;

    Swift

    var dNewMembers: [DBTEAMMemberAddArg] { get }
  • Whether to force the add to happen asynchronously.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull forceAsync;

    Swift

    var forceAsync: NSNumber { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDNewMembers:
                                (nonnull NSArray<DBTEAMMemberAddArg *> *)dNewMembers
                                     forceAsync:(nullable NSNumber *)forceAsync;

    Swift

    init(dNewMembers: [DBTEAMMemberAddArg], forceAsync: NSNumber?)

    Parameters

    dNewMembers

    Details of new members to be added to the team.

    forceAsync

    Whether to force the add to happen asynchronously.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDNewMembers:
        (nonnull NSArray<DBTEAMMemberAddArg *> *)dNewMembers;

    Swift

    init(dNewMembers: [DBTEAMMemberAddArg])

    Parameters

    dNewMembers

    Details of new members to be added to the team.

    Return Value

    An initialized instance.