DBSHARINGRemoveFolderMemberError
Objective-C
@interface DBSHARINGRemoveFolderMemberError
: NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGRemoveFolderMemberError : NSObject, DBSerializable, NSCopying
The RemoveFolderMemberError union.
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) DBSHARINGRemoveFolderMemberErrorTag tag;Swift
var tag: DBSHARINGRemoveFolderMemberErrorTag { get } -
(no description). - note: Ensure the
isAccessErrormethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharedFolderAccessError *_Nonnull accessError;Swift
var accessError: DBSHARINGSharedFolderAccessError { get } -
(no description). - note: Ensure the
isMemberErrormethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharedFolderMemberError *_Nonnull memberError;Swift
var memberError: DBSHARINGSharedFolderMemberError { get }
-
Initializes union class with tag state of “access_error”.
Declaration
Objective-C
- (nonnull instancetype)initWithAccessError: (nonnull DBSHARINGSharedFolderAccessError *)accessError;Swift
init(accessError: DBSHARINGSharedFolderAccessError)Parameters
accessError(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “member_error”.
Declaration
Objective-C
- (nonnull instancetype)initWithMemberError: (nonnull DBSHARINGSharedFolderMemberError *)memberError;Swift
init(memberError: DBSHARINGSharedFolderMemberError)Parameters
memberError(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “folder_owner”.
Description of the “folder_owner” tag state: The target user is the owner of the shared folder. You can’t remove this user until ownership has been transferred to another member.
Declaration
Objective-C
- (nonnull instancetype)initWithFolderOwner;Swift
init(folderOwner: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “group_access”.
Description of the “group_access” tag state: The target user has access to the shared folder via a group.
Declaration
Objective-C
- (nonnull instancetype)initWithGroupAccess;Swift
init(groupAccess: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “team_folder”.
Description of the “team_folder” tag state: This action cannot be performed on a team shared folder.
Declaration
Objective-C
- (nonnull instancetype)initWithTeamFolder;Swift
init(teamFolder: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “no_permission”.
Description of the “no_permission” tag state: The current user does not have permission to perform this action.
Declaration
Objective-C
- (nonnull instancetype)initWithNoPermission;Swift
init(noPermission: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “too_many_files”.
Description of the “too_many_files” tag state: This shared folder has too many files for leaving a copy. You can still remove this user without leaving a copy.
Declaration
Objective-C
- (nonnull instancetype)initWithTooManyFiles;Swift
init(tooManyFiles: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “access_error”.
Note
Call this method and ensure it returns true before accessing the
accessErrorproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isAccessError;Swift
func isAccessError() -> BoolReturn Value
Whether the union’s current tag state has value “access_error”.
-
Retrieves whether the union’s current tag state has value “member_error”.
Note
Call this method and ensure it returns true before accessing the
memberErrorproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isMemberError;Swift
func isMemberError() -> BoolReturn Value
Whether the union’s current tag state has value “member_error”.
-
Retrieves whether the union’s current tag state has value “folder_owner”.
Declaration
Objective-C
- (BOOL)isFolderOwner;Swift
func isFolderOwner() -> BoolReturn Value
Whether the union’s current tag state has value “folder_owner”.
-
Retrieves whether the union’s current tag state has value “group_access”.
Declaration
Objective-C
- (BOOL)isGroupAccess;Swift
func isGroupAccess() -> BoolReturn Value
Whether the union’s current tag state has value “group_access”.
-
Retrieves whether the union’s current tag state has value “team_folder”.
Declaration
Objective-C
- (BOOL)isTeamFolder;Swift
func isTeamFolder() -> BoolReturn Value
Whether the union’s current tag state has value “team_folder”.
-
Retrieves whether the union’s current tag state has value “no_permission”.
Declaration
Objective-C
- (BOOL)isNoPermission;Swift
func isNoPermission() -> BoolReturn Value
Whether the union’s current tag state has value “no_permission”.
-
Retrieves whether the union’s current tag state has value “too_many_files”.
Declaration
Objective-C
- (BOOL)isTooManyFiles;Swift
func isTooManyFiles() -> BoolReturn Value
Whether the union’s current tag state has value “too_many_files”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
-
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
DBSHARINGRemoveFolderMemberError Class Reference