DBSHARINGAddMemberSelectorError

Objective-C

@interface DBSHARINGAddMemberSelectorError
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGAddMemberSelectorError : NSObject, DBSerializable, NSCopying

The AddMemberSelectorError 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

  • tag

    Represents the union’s current tag state.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBSHARINGAddMemberSelectorErrorTag tag;

    Swift

    var tag: DBSHARINGAddMemberSelectorErrorTag { get }
  • The value is the ID that could not be identified. - note: Ensure the isInvalidDropboxId method returns true before accessing, otherwise a runtime exception will be raised.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull invalidDropboxId;

    Swift

    var invalidDropboxId: String { get }
  • The value is the e-email address that is malformed. - note: Ensure the isInvalidEmail method returns true before accessing, otherwise a runtime exception will be raised.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull invalidEmail;

    Swift

    var invalidEmail: String { get }
  • The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.

    Note

    Ensure the isUnverifiedDropboxId method returns true before accessing, otherwise a runtime exception will be raised.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull unverifiedDropboxId;

    Swift

    var unverifiedDropboxId: String { get }

Constructors

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

    Description of the “automatic_group” tag state: Automatically created groups can only be added to team folders.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAutomaticGroup;

    Swift

    init(automaticGroup: ())

    Return Value

    An initialized instance.

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

    Description of the “invalid_dropbox_id” tag state: The value is the ID that could not be identified.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidDropboxId:
        (nonnull NSString *)invalidDropboxId;

    Swift

    init(invalidDropboxId: String)

    Parameters

    invalidDropboxId

    The value is the ID that could not be identified.

    Return Value

    An initialized instance.

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

    Description of the “invalid_email” tag state: The value is the e-email address that is malformed.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidEmail:(nonnull NSString *)invalidEmail;

    Swift

    init(invalidEmail: String)

    Parameters

    invalidEmail

    The value is the e-email address that is malformed.

    Return Value

    An initialized instance.

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

    Description of the “unverified_dropbox_id” tag state: The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUnverifiedDropboxId:
        (nonnull NSString *)unverifiedDropboxId;

    Swift

    init(unverifiedDropboxId: String)

    Parameters

    unverifiedDropboxId

    The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.

    Return Value

    An initialized instance.

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

    Description of the “group_deleted” tag state: At least one of the specified groups in members in DBSHARINGAddFolderMemberArg is deleted.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGroupDeleted;

    Swift

    init(groupDeleted: ())

    Return Value

    An initialized instance.

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

    Description of the “group_not_on_team” tag state: Sharing to a group that is not on the current user’s team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGroupNotOnTeam;

    Swift

    init(groupNotOnTeam: ())

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

    Declaration

    Objective-C

    - (BOOL)isAutomaticGroup;

    Swift

    func isAutomaticGroup() -> Bool

    Return Value

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

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

    Note

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

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

    Note

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

    Declaration

    Objective-C

    - (BOOL)isInvalidEmail;

    Swift

    func isInvalidEmail() -> Bool

    Return Value

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

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

    Note

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

    Declaration

    Objective-C

    - (BOOL)isUnverifiedDropboxId;

    Swift

    func isUnverifiedDropboxId() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isGroupDeleted;

    Swift

    func isGroupDeleted() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isGroupNotOnTeam;

    Swift

    func isGroupNotOnTeam() -> Bool

    Return Value

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

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