DBTEAMPOLICIESGroupCreation

Objective-C

@interface DBTEAMPOLICIESGroupCreation : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMPOLICIESGroupCreation : NSObject, DBSerializable, NSCopying

The GroupCreation union.

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

Instance fields

Constructors

  • Initializes union class with tag state of “admins_and_members”.

    Description of the “admins_and_members” tag state: Team admins and members can create groups.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAdminsAndMembers;

    Swift

    init(adminsAndMembers: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “admins_only”.

    Description of the “admins_only” tag state: Only team admins can create groups.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAdminsOnly;

    Swift

    init(adminsOnly: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “admins_and_members”.

    Declaration

    Objective-C

    - (BOOL)isAdminsAndMembers;

    Swift

    func isAdminsAndMembers() -> Bool

    Return Value

    Whether the union’s current tag state has value “admins_and_members”.

  • Retrieves whether the union’s current tag state has value “admins_only”.

    Declaration

    Objective-C

    - (BOOL)isAdminsOnly;

    Swift

    func isAdminsOnly() -> Bool

    Return Value

    Whether the union’s current tag state has value “admins_only”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.