DBFILESLockFileResult
Objective-C
@interface DBFILESLockFileResult : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESLockFileResult : NSObject, DBSerializable, NSCopying
The LockFileResult
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Metadata of the file.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESMetadata *_Nonnull metadata;
Swift
var metadata: DBFILESMetadata { get }
-
The file lock state after the operation.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESFileLock *_Nonnull lock;
Swift
var lock: DBFILESFileLock { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithMetadata:(nonnull DBFILESMetadata *)metadata lock:(nonnull DBFILESFileLock *)lock;
Swift
init(metadata: DBFILESMetadata, lock: DBFILESFileLock)
Parameters
metadata
Metadata of the file.
lock
The file lock state after the operation.
Return Value
An initialized instance.