DBSHARINGSharedFolderMemberError

Objective-C

@interface DBSHARINGSharedFolderMemberError
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGSharedFolderMemberError : NSObject, DBSerializable, NSCopying

The SharedFolderMemberError 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 “invalid_dropbox_id”.

    Description of the “invalid_dropbox_id” tag state: The target dropbox_id is invalid.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidDropboxId;

    Swift

    init(invalidDropboxId: ())

    Return Value

    An initialized instance.

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

    Description of the “not_a_member” tag state: The target dropbox_id is not a member of the shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNotAMember;

    Swift

    init(notAMember: ())

    Return Value

    An initialized instance.

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

    Description of the “no_explicit_access” tag state: The target member only has inherited access to the shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNoExplicitAccess:
        (nonnull DBSHARINGMemberAccessLevelResult *)noExplicitAccess;

    Swift

    init(noExplicitAccess: DBSHARINGMemberAccessLevelResult)

    Parameters

    noExplicitAccess

    The target member only has inherited access to the shared folder.

    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.

Tag state methods

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

    Declaration

    Objective-C

    - (BOOL)isInvalidDropboxId;

    Swift

    func isInvalidDropboxId() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isNotAMember;

    Swift

    func isNotAMember() -> Bool

    Return Value

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

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

    Note

    Call this method and ensure it returns true before accessing the noExplicitAccess property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isNoExplicitAccess;

    Swift

    func isNoExplicitAccess() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return 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() -> String

    Return Value

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