DBFILESListRevisionsArg

Objective-C

@interface DBFILESListRevisionsArg : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESListRevisionsArg : NSObject, DBSerializable, NSCopying

The ListRevisionsArg struct.

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

Instance fields

  • The path to the file you want to see the revisions of.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • Determines the behavior of the API in listing the revisions for a given file path or id.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBFILESListRevisionsMode *_Nonnull mode;

    Swift

    var mode: DBFILESListRevisionsMode { get }
  • The maximum number of revision entries returned.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull limit;

    Swift

    var limit: NSNumber { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                                    mode:(nullable DBFILESListRevisionsMode *)mode
                                   limit:(nullable NSNumber *)limit;

    Swift

    init(path: String, mode: DBFILESListRevisionsMode?, limit: NSNumber?)

    Parameters

    path

    The path to the file you want to see the revisions of.

    mode

    Determines the behavior of the API in listing the revisions for a given file path or id.

    limit

    The maximum number of revision entries returned.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path;

    Swift

    init(path: String)

    Parameters

    path

    The path to the file you want to see the revisions of.

    Return Value

    An initialized instance.