DBFILESExportMetadata
Objective-C
@interface DBFILESExportMetadata : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESExportMetadata : NSObject, DBSerializable, NSCopying
The ExportMetadata struct.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The last component of the path (including extension). This never contains a slash.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull name;Swift
var name: String { get } -
The file size in bytes.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull size;Swift
var size: NSNumber { get } -
A hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash. For more information see our Content hash https://www.dropbox.com/developers/reference/content-hash page.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *exportHash;Swift
var exportHash: String? { get } -
If the file is a Paper doc, this gives the latest doc revision which can be used in
paperUpdate.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSNumber *paperRevision;Swift
var paperRevision: NSNumber? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithName:(nonnull NSString *)name size:(nonnull NSNumber *)size exportHash:(nullable NSString *)exportHash paperRevision:(nullable NSNumber *)paperRevision;Swift
init(name: String, size: NSNumber, exportHash: String?, paperRevision: NSNumber?)Parameters
nameThe last component of the path (including extension). This never contains a slash.
sizeThe file size in bytes.
exportHashA hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash. For more information see our Content hash https://www.dropbox.com/developers/reference/content-hash page.
paperRevisionIf the file is a Paper doc, this gives the latest doc revision which can be used in
paperUpdate.Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithName:(nonnull NSString *)name size:(nonnull NSNumber *)size;Swift
init(name: String, size: NSNumber)Parameters
nameThe last component of the path (including extension). This never contains a slash.
sizeThe file size in bytes.
Return Value
An initialized instance.
View on GitHub
DBFILESExportMetadata Class Reference