DBFILEREQUESTSUpdateFileRequestArgs
Objective-C
@interface DBFILEREQUESTSUpdateFileRequestArgs
: NSObject <DBSerializable, NSCopying>
Swift
class DBFILEREQUESTSUpdateFileRequestArgs : NSObject, DBSerializable, NSCopying
The UpdateFileRequestArgs
struct.
Arguments for update
.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The ID of the file request to update.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull id_;
Swift
var id_: String { get }
-
The new title of the file request. Must not be empty.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *title;
Swift
var title: String? { get }
-
The new path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will be relative to the app folder.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *destination;
Swift
var destination: String? { get }
-
The new deadline for the file request. Deadlines can only be set by Professional and Business accounts.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILEREQUESTSUpdateFileRequestDeadline *_Nonnull deadline;
Swift
var deadline: DBFILEREQUESTSUpdateFileRequestDeadline { get }
-
Whether to set this file request as open or closed.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSNumber *open;
Swift
var open: NSNumber? { get }
-
The description of the file request.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *description_;
Swift
var description_: String? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithId_:(nonnull NSString *)id_ title:(nullable NSString *)title destination:(nullable NSString *)destination deadline:(nullable DBFILEREQUESTSUpdateFileRequestDeadline *)deadline open:(nullable NSNumber *)open description_:(nullable NSString *)description_;
Swift
init(id_: String, title: String?, destination: String?, deadline: DBFILEREQUESTSUpdateFileRequestDeadline?, open: NSNumber?, description_: String?)
Parameters
id_
The ID of the file request to update.
title
The new title of the file request. Must not be empty.
destination
The new path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will be relative to the app folder.
deadline
The new deadline for the file request. Deadlines can only be set by Professional and Business accounts.
open
Whether to set this file request as open or closed.
description_
The description of the file request.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithId_:(nonnull NSString *)id_;
Swift
init(id_: String)
Parameters
id_
The ID of the file request to update.
Return Value
An initialized instance.