DBTEAMMembersRemoveError

@interface DBTEAMMembersRemoveError : NSObject <DBSerializable, NSCopying>

The MembersRemoveError union.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Initializes union class with tag state of user_not_found.

    Description of the user_not_found tag state: No matching user found. The provided team_member_id, email, or external_id does not exist on this team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotFound;

    Swift

    init(userNotFound: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of user_not_in_team.

    Description of the user_not_in_team tag state: The user is not a member of the team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotInTeam;

    Swift

    init(userNotInTeam: ())

    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.

  • Initializes union class with tag state of remove_last_admin.

    Description of the remove_last_admin tag state: The user is the last admin of the team, so it cannot be removed from it.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRemoveLastAdmin;

    Swift

    init(removeLastAdmin: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of removed_and_transfer_dest_should_differ.

    Description of the removed_and_transfer_dest_should_differ tag state: Expected removed user and transfer_dest user to be different.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRemovedAndTransferDestShouldDiffer;

    Swift

    init(removedAndTransferDestShouldDiffer: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of removed_and_transfer_admin_should_differ.

    Description of the removed_and_transfer_admin_should_differ tag state: Expected removed user and transfer_admin user to be different.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRemovedAndTransferAdminShouldDiffer;

    Swift

    init(removedAndTransferAdminShouldDiffer: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of transfer_dest_user_not_found.

    Description of the transfer_dest_user_not_found tag state: No matching user found for the argument transfer_dest_id.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTransferDestUserNotFound;

    Swift

    init(transferDestUserNotFound: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of transfer_dest_user_not_in_team.

    Description of the transfer_dest_user_not_in_team tag state: The provided transfer_dest_id does not exist on this team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTransferDestUserNotInTeam;

    Swift

    init(transferDestUserNotInTeam: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of transfer_admin_user_not_found.

    Description of the transfer_admin_user_not_found tag state: No matching user found for the argument transfer_admin_id.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTransferAdminUserNotFound;

    Swift

    init(transferAdminUserNotFound: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of transfer_admin_user_not_in_team.

    Description of the transfer_admin_user_not_in_team tag state: The provided transfer_admin_id does not exist on this team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTransferAdminUserNotInTeam;

    Swift

    init(transferAdminUserNotInTeam: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of unspecified_transfer_admin_id.

    Description of the unspecified_transfer_admin_id tag state: The transfer_admin_id argument must be provided when file transfer is requested.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUnspecifiedTransferAdminId;

    Swift

    init(unspecifiedTransferAdminId: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of transfer_admin_is_not_admin.

    Description of the transfer_admin_is_not_admin tag state: Specified transfer_admin user is not a team admin.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTransferAdminIsNotAdmin;

    Swift

    init(transferAdminIsNotAdmin: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of cannot_keep_account_and_transfer.

    Description of the cannot_keep_account_and_transfer tag state: Cannot keep account and transfer the data to another user at the same time.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCannotKeepAccountAndTransfer;

    Swift

    init(cannotKeepAccountAndTransfer: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of cannot_keep_account_and_delete_data.

    Description of the cannot_keep_account_and_delete_data tag state: Cannot keep account and delete the data at the same time. To keep the account the argument wipe_data should be set to False.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCannotKeepAccountAndDeleteData;

    Swift

    init(cannotKeepAccountAndDeleteData: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of email_address_too_long_to_be_disabled.

    Description of the email_address_too_long_to_be_disabled tag state: The email address of the user is too long to be disabled.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEmailAddressTooLongToBeDisabled;

    Swift

    init(emailAddressTooLongToBeDisabled: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of cannot_keep_invited_user_account.

    Description of the cannot_keep_invited_user_account tag state: Cannot keep account of an invited user.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCannotKeepInvitedUserAccount;

    Swift

    init(cannotKeepInvitedUserAccount: ())

    Return Value

    An initialized instance.

  • Retrieves whether the union’s current tag state has value user_not_found.

    Declaration

    Objective-C

    - (BOOL)isUserNotFound;

    Swift

    func isUserNotFound() -> Bool

    Return Value

    Whether the union’s current tag state has value user_not_found.

  • Retrieves whether the union’s current tag state has value user_not_in_team.

    Declaration

    Objective-C

    - (BOOL)isUserNotInTeam;

    Swift

    func isUserNotInTeam() -> Bool

    Return Value

    Whether the union’s current tag state has value user_not_in_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 whether the union’s current tag state has value remove_last_admin.

    Declaration

    Objective-C

    - (BOOL)isRemoveLastAdmin;

    Swift

    func isRemoveLastAdmin() -> Bool

    Return Value

    Whether the union’s current tag state has value remove_last_admin.

  • Retrieves whether the union’s current tag state has value removed_and_transfer_dest_should_differ.

    Declaration

    Objective-C

    - (BOOL)isRemovedAndTransferDestShouldDiffer;

    Swift

    func isRemovedAndTransferDestShouldDiffer() -> Bool

    Return Value

    Whether the union’s current tag state has value removed_and_transfer_dest_should_differ.

  • Retrieves whether the union’s current tag state has value removed_and_transfer_admin_should_differ.

    Declaration

    Objective-C

    - (BOOL)isRemovedAndTransferAdminShouldDiffer;

    Swift

    func isRemovedAndTransferAdminShouldDiffer() -> Bool

    Return Value

    Whether the union’s current tag state has value removed_and_transfer_admin_should_differ.

  • Retrieves whether the union’s current tag state has value transfer_dest_user_not_found.

    Declaration

    Objective-C

    - (BOOL)isTransferDestUserNotFound;

    Swift

    func isTransferDestUserNotFound() -> Bool

    Return Value

    Whether the union’s current tag state has value transfer_dest_user_not_found.

  • Retrieves whether the union’s current tag state has value transfer_dest_user_not_in_team.

    Declaration

    Objective-C

    - (BOOL)isTransferDestUserNotInTeam;

    Swift

    func isTransferDestUserNotInTeam() -> Bool

    Return Value

    Whether the union’s current tag state has value transfer_dest_user_not_in_team.

  • Retrieves whether the union’s current tag state has value transfer_admin_user_not_found.

    Declaration

    Objective-C

    - (BOOL)isTransferAdminUserNotFound;

    Swift

    func isTransferAdminUserNotFound() -> Bool

    Return Value

    Whether the union’s current tag state has value transfer_admin_user_not_found.

  • Retrieves whether the union’s current tag state has value transfer_admin_user_not_in_team.

    Declaration

    Objective-C

    - (BOOL)isTransferAdminUserNotInTeam;

    Swift

    func isTransferAdminUserNotInTeam() -> Bool

    Return Value

    Whether the union’s current tag state has value transfer_admin_user_not_in_team.

  • Retrieves whether the union’s current tag state has value unspecified_transfer_admin_id.

    Declaration

    Objective-C

    - (BOOL)isUnspecifiedTransferAdminId;

    Swift

    func isUnspecifiedTransferAdminId() -> Bool

    Return Value

    Whether the union’s current tag state has value unspecified_transfer_admin_id.

  • Retrieves whether the union’s current tag state has value transfer_admin_is_not_admin.

    Declaration

    Objective-C

    - (BOOL)isTransferAdminIsNotAdmin;

    Swift

    func isTransferAdminIsNotAdmin() -> Bool

    Return Value

    Whether the union’s current tag state has value transfer_admin_is_not_admin.

  • Retrieves whether the union’s current tag state has value cannot_keep_account_and_transfer.

    Declaration

    Objective-C

    - (BOOL)isCannotKeepAccountAndTransfer;

    Swift

    func isCannotKeepAccountAndTransfer() -> Bool

    Return Value

    Whether the union’s current tag state has value cannot_keep_account_and_transfer.

  • Retrieves whether the union’s current tag state has value cannot_keep_account_and_delete_data.

    Declaration

    Objective-C

    - (BOOL)isCannotKeepAccountAndDeleteData;

    Swift

    func isCannotKeepAccountAndDeleteData() -> Bool

    Return Value

    Whether the union’s current tag state has value cannot_keep_account_and_delete_data.

  • Retrieves whether the union’s current tag state has value email_address_too_long_to_be_disabled.

    Declaration

    Objective-C

    - (BOOL)isEmailAddressTooLongToBeDisabled;

    Swift

    func isEmailAddressTooLongToBeDisabled() -> Bool

    Return Value

    Whether the union’s current tag state has value email_address_too_long_to_be_disabled.

  • Retrieves whether the union’s current tag state has value cannot_keep_invited_user_account.

    Declaration

    Objective-C

    - (BOOL)isCannotKeepInvitedUserAccount;

    Swift

    func isCannotKeepInvitedUserAccount() -> Bool

    Return Value

    Whether the union’s current tag state has value cannot_keep_invited_user_account.

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