DBSHARINGMemberAction

Objective-C

@interface DBSHARINGMemberAction : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGMemberAction : NSObject, DBSerializable, NSCopying

The MemberAction union.

Actions that may be taken on members of a shared folder.

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

    Description of the “leave_a_copy” tag state: Allow the member to keep a copy of the folder when removing.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLeaveACopy;

    Swift

    init(leaveACopy: ())

    Return Value

    An initialized instance.

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

    Description of the “make_editor” tag state: Make the member an editor of the folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMakeEditor;

    Swift

    init(makeEditor: ())

    Return Value

    An initialized instance.

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

    Description of the “make_owner” tag state: Make the member an owner of the folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMakeOwner;

    Swift

    init(makeOwner: ())

    Return Value

    An initialized instance.

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

    Description of the “make_viewer” tag state: Make the member a viewer of the folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMakeViewer;

    Swift

    init(makeViewer: ())

    Return Value

    An initialized instance.

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

    Description of the “make_viewer_no_comment” tag state: Make the member a viewer of the folder without commenting permissions.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMakeViewerNoComment;

    Swift

    init(makeViewerNoComment: ())

    Return Value

    An initialized instance.

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

    Description of the “remove” tag state: Remove the member from the folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRemove;

    Swift

    init(remove: ())

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

    Declaration

    Objective-C

    - (BOOL)isLeaveACopy;

    Swift

    func isLeaveACopy() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isMakeEditor;

    Swift

    func isMakeEditor() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isMakeOwner;

    Swift

    func isMakeOwner() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isMakeViewer;

    Swift

    func isMakeViewer() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isMakeViewerNoComment;

    Swift

    func isMakeViewerNoComment() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isRemove;

    Swift

    func isRemove() -> Bool

    Return Value

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

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