DBFILESUploadSessionFinishArg
Objective-C
@interface DBFILESUploadSessionFinishArg : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESUploadSessionFinishArg : NSObject, DBSerializable, NSCopying
The UploadSessionFinishArg
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Contains the upload session ID and the offset.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESUploadSessionCursor *_Nonnull cursor;
Swift
var cursor: DBFILESUploadSessionCursor { get }
-
Contains the path and other optional modifiers for the commit.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESCommitInfo *_Nonnull commit;
Swift
var commit: DBFILESCommitInfo { get }
-
A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. 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 *contentHash;
Swift
var contentHash: String? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithCursor: (nonnull DBFILESUploadSessionCursor *)cursor commit:(nonnull DBFILESCommitInfo *)commit contentHash:(nullable NSString *)contentHash;
Swift
init(cursor: DBFILESUploadSessionCursor, commit: DBFILESCommitInfo, contentHash: String?)
Parameters
cursor
Contains the upload session ID and the offset.
commit
Contains the path and other optional modifiers for the commit.
contentHash
A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash https://www.dropbox.com/developers/reference/content-hash page.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithCursor: (nonnull DBFILESUploadSessionCursor *)cursor commit:(nonnull DBFILESCommitInfo *)commit;
Swift
init(cursor: DBFILESUploadSessionCursor, commit: DBFILESCommitInfo)
Parameters
cursor
Contains the upload session ID and the offset.
commit
Contains the path and other optional modifiers for the commit.
Return Value
An initialized instance.