DBTEAMTeamMembershipType

Objective-C

@interface DBTEAMTeamMembershipType : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMTeamMembershipType : NSObject, DBSerializable, NSCopying

The TeamMembershipType 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 “full”.

    Description of the “full” tag state: User uses a license and has full access to team resources like the shared quota.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFull;

    Swift

    init(full: ())

    Return Value

    An initialized instance.

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

    Description of the “limited” tag state: User does not have access to the shared quota and team admins have restricted administrative control.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLimited;

    Swift

    init(limited: ())

    Return Value

    An initialized instance.

Tag state methods

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

    Declaration

    Objective-C

    - (BOOL)isFull;

    Swift

    func isFull() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isLimited;

    Swift

    func isLimited() -> Bool

    Return Value

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

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