DBPAPERPaperDocExportResult

Objective-C

@interface DBPAPERPaperDocExportResult : NSObject <DBSerializable, NSCopying>

Swift

class DBPAPERPaperDocExportResult : NSObject, DBSerializable, NSCopying

The PaperDocExportResult 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 Paper doc owner’s email address.

    Declaration

    Objective-C

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

    Swift

    var owner: String { get }
  • The Paper doc title.

    Declaration

    Objective-C

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

    Swift

    var title: String { get }
  • The Paper doc revision. Simply an ever increasing number.

    Declaration

    Objective-C

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

    Swift

    var revision: NSNumber { get }
  • MIME type of the export. This corresponds to ExportFormat specified in the request.

    Declaration

    Objective-C

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

    Swift

    var mimeType: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOwner:(nonnull NSString *)owner
                                    title:(nonnull NSString *)title
                                 revision:(nonnull NSNumber *)revision
                                 mimeType:(nonnull NSString *)mimeType;

    Swift

    init(owner: String, title: String, revision: NSNumber, mimeType: String)

    Parameters

    owner

    The Paper doc owner’s email address.

    title

    The Paper doc title.

    revision

    The Paper doc revision. Simply an ever increasing number.

    mimeType

    MIME type of the export. This corresponds to ExportFormat specified in the request.

    Return Value

    An initialized instance.