DBFILESRestoreArg

@interface DBFILESRestoreArg : NSObject <DBSerializable, NSCopying>

The RestoreArg 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 to the file you want to restore.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • rev

    The revision to restore for the file.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull 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:(nonnull NSString *)rev;

    Swift

    init(path: String, rev: String)

    Parameters

    path

    The path to the file you want to restore.

    rev

    The revision to restore for the file.

    Return Value

    An initialized instance.