DBTEAMGroupAccessType

Objective-C

@interface DBTEAMGroupAccessType : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMGroupAccessType : NSObject, DBSerializable, NSCopying

The GroupAccessType union.

Role of a user in group.

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 “member”.

    Description of the “member” tag state: User is a member of the group, but has no special permissions.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMember;

    Swift

    init(member: ())

    Return Value

    An initialized instance.

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

    Description of the “owner” tag state: User can rename the group, and add/remove members.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOwner;

    Swift

    init(owner: ())

    Return Value

    An initialized instance.

Tag state methods

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

    Declaration

    Objective-C

    - (BOOL)isMember;

    Swift

    func isMember() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isOwner;

    Swift

    func isOwner() -> Bool

    Return Value

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

  • 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.