DBFILESDownloadArg

@interface DBFILESDownloadArg : NSObject <DBSerializable, NSCopying>

The DownloadArg struct.

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

  • The path of the file to download.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • rev

    Please specify revision in path instead.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *rev;

    Swift

    var rev: String? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

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

    Swift

    init(path: String, rev: String?)

    Parameters

    path

    The path of the file to download.

    rev

    Please specify revision in path instead.

    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 of the file to download.

    Return Value

    An initialized instance.