Lock
public class Lock : BoxModel
Locks a file to prevent it from being modified
-
Box item type
Declaration
Swift
public var type: String -
Declaration
Swift
public private(set) var rawData: [String : Any]
-
Identifier
Declaration
Swift
public let id: String -
Who created the lock.
Declaration
Swift
public let createdBy: User? -
When was lock created.
Declaration
Swift
public let createdAt: Date? -
When lock expires.
Declaration
Swift
public let expiresAt: Date? -
Whether or not the file can be downloaded while locked.
Declaration
Swift
public let isDownloadPrevented: Bool? -
Initializer.
Throws
Decoding error.Declaration
Swift
public required init(json: [String : Any]) throwsParameters
jsonJSON dictionary.
Lock Class Reference