DBSHARINGGetFileMetadataArg
Objective-C
@interface DBSHARINGGetFileMetadataArg : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGGetFileMetadataArg : NSObject, DBSerializable, NSCopying
The GetFileMetadataArg
struct.
Arguments of getFileMetadata
.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The file to query.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull file;
Swift
var file: String { get }
-
A list of
FileAction
s corresponding toFilePermission
s that should appear in the response’spermissions
inDBSHARINGSharedFileMetadata
field describing the actions the authenticated user can perform on the file.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSArray<DBSHARINGFileAction *> *actions;
Swift
var actions: [DBSHARINGFileAction]? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithFile:(nonnull NSString *)file actions:(nullable NSArray<DBSHARINGFileAction *> *) actions;
Swift
init(file: String, actions: [DBSHARINGFileAction]?)
Parameters
file
The file to query.
actions
A list of
FileAction
s corresponding toFilePermission
s that should appear in the response’spermissions
inDBSHARINGSharedFileMetadata
field describing the actions the authenticated user can perform on the file.Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithFile:(nonnull NSString *)file;
Swift
init(file: String)
Parameters
file
The file to query.
Return Value
An initialized instance.