DBFILESUploadSessionStartBatchArg
Objective-C
@interface DBFILESUploadSessionStartBatchArg
: NSObject <DBSerializable, NSCopying>
Swift
class DBFILESUploadSessionStartBatchArg : NSObject, DBSerializable, NSCopying
The UploadSessionStartBatchArg
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Type of upload session you want to start. If not specified, default is
sequential
inDBFILESUploadSessionType
.Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBFILESUploadSessionType *sessionType;
Swift
var sessionType: DBFILESUploadSessionType? { get }
-
The number of upload sessions to start.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull numSessions;
Swift
var numSessions: NSNumber { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithNumSessions:(nonnull NSNumber *)numSessions sessionType:(nullable DBFILESUploadSessionType *)sessionType;
Swift
init(numSessions: NSNumber, sessionType: DBFILESUploadSessionType?)
Parameters
numSessions
The number of upload sessions to start.
sessionType
Type of upload session you want to start. If not specified, default is
sequential
inDBFILESUploadSessionType
.Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithNumSessions:(nonnull NSNumber *)numSessions;
Swift
init(numSessions: NSNumber)
Parameters
numSessions
The number of upload sessions to start.
Return Value
An initialized instance.