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.
- 
                  
                  
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMGroupAccessTypeTag tag;Swift
var tag: DBTEAMGroupAccessTypeTag { get } 
- 
                  
                  
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.
 
- 
                  
                  
Retrieves whether the union’s current tag state has value “member”.
Declaration
Objective-C
- (BOOL)isMember;Swift
func isMember() -> BoolReturn 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() -> BoolReturn 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() -> StringReturn Value
A human-readable string representing the union’s current tag state.
 
View on GitHub
        DBTEAMGroupAccessType Class Reference