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
FileActions corresponding toFilePermissions that should appear in the response’spermissionsinDBSHARINGSharedFileMetadatafield 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
fileThe file to query.
actionsA list of
FileActions corresponding toFilePermissions that should appear in the response’spermissionsinDBSHARINGSharedFileMetadatafield 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
fileThe file to query.
Return Value
An initialized instance.
View on GitHub
DBSHARINGGetFileMetadataArg Class Reference