DBFILESPaperCreateResult

Objective-C

@interface DBFILESPaperCreateResult : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESPaperCreateResult : NSObject, DBSerializable, NSCopying

The PaperCreateResult 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

  • url

    URL to open the Paper Doc.

    Declaration

    Objective-C

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

    Swift

    var url: String { get }
  • The fully qualified path the Paper Doc was actually created at.

    Declaration

    Objective-C

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

    Swift

    var resultPath: String { get }
  • The id to use in Dropbox APIs when referencing the Paper Doc.

    Declaration

    Objective-C

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

    Swift

    var fileId: String { get }
  • The current doc revision.

    Declaration

    Objective-C

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

    Swift

    var paperRevision: NSNumber { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSString *)url
                             resultPath:(nonnull NSString *)resultPath
                                 fileId:(nonnull NSString *)fileId
                          paperRevision:(nonnull NSNumber *)paperRevision;

    Swift

    init(url: String, resultPath: String, fileId: String, paperRevision: NSNumber)

    Parameters

    url

    URL to open the Paper Doc.

    resultPath

    The fully qualified path the Paper Doc was actually created at.

    fileId

    The id to use in Dropbox APIs when referencing the Paper Doc.

    paperRevision

    The current doc revision.

    Return Value

    An initialized instance.