DBFILESMinimalFileLinkMetadata
Objective-C
@interface DBFILESMinimalFileLinkMetadata : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESMinimalFileLinkMetadata : NSObject, DBSerializable, NSCopying
The MinimalFileLinkMetadata
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
URL of the shared link.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull url;
Swift
var url: String { get }
-
Unique identifier for the linked file.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *id_;
Swift
var id_: String? { get }
-
Full path in the user’s Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user’s Dropbox.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *path;
Swift
var path: String? { get }
-
A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull rev;
Swift
var rev: String { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithUrl:(nonnull NSString *)url rev:(nonnull NSString *)rev id_:(nullable NSString *)id_ path:(nullable NSString *)path;
Swift
init(url: String, rev: String, id_: String?, path: String?)
Parameters
url
URL of the shared link.
rev
A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
id_
Unique identifier for the linked file.
path
Full path in the user’s Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user’s Dropbox.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithUrl:(nonnull NSString *)url rev:(nonnull NSString *)rev;
Swift
init(url: String, rev: String)
Parameters
url
URL of the shared link.
rev
A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
Return Value
An initialized instance.