DBPAPERListPaperDocsSortBy

Objective-C

@interface DBPAPERListPaperDocsSortBy : NSObject <DBSerializable, NSCopying>

Swift

class DBPAPERListPaperDocsSortBy : NSObject, DBSerializable, NSCopying

The ListPaperDocsSortBy 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 “accessed”.

    Description of the “accessed” tag state: Sorts the Paper docs by the time they were last accessed.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAccessed;

    Swift

    init(accessed: ())

    Return Value

    An initialized instance.

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

    Description of the “modified” tag state: Sorts the Paper docs by the time they were last modified.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModified;

    Swift

    init(modified: ())

    Return Value

    An initialized instance.

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

    Description of the “created” tag state: Sorts the Paper docs by the creation time.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCreated;

    Swift

    init(created: ())

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

    Declaration

    Objective-C

    - (BOOL)isAccessed;

    Swift

    func isAccessed() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isModified;

    Swift

    func isModified() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isCreated;

    Swift

    func isCreated() -> Bool

    Return Value

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

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