Skip to content
Snippets Groups Projects
Commit 38c2aa56 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update NewCmixFromBackup functor

parent 45a2638c
No related branches found
No related tags found
1 merge request!102Release 1.0.0
...@@ -2,29 +2,29 @@ import Bindings ...@@ -2,29 +2,29 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct NewCmixFromBackup { public struct NewCmixFromBackup {
public var run: (String, String, Data, Data, Data) throws -> BackupReport public var run: (String, String, String, Data, Data) throws -> BackupReport
public func callAsFunction( public func callAsFunction(
ndfJSON: String, ndfJSON: String,
storageDir: String, storageDir: String,
backupPassphrase: String,
sessionPassword: Data, sessionPassword: Data,
backupPassphrase: Data,
backupFileContents: Data backupFileContents: Data
) throws -> BackupReport { ) throws -> BackupReport {
try run(ndfJSON, storageDir, sessionPassword, backupPassphrase, backupFileContents) try run(ndfJSON, storageDir, backupPassphrase, sessionPassword, backupFileContents)
} }
} }
extension NewCmixFromBackup { extension NewCmixFromBackup {
public static let live = NewCmixFromBackup { public static let live = NewCmixFromBackup {
ndfJSON, storageDir, sessionPassword, backupPassphrase, backupFileContents in ndfJSON, storageDir, backupPassphrase, sessionPassword, backupFileContents in
var error: NSError? var error: NSError?
let reportData = BindingsNewCmixFromBackup( let reportData = BindingsNewCmixFromBackup(
ndfJSON, ndfJSON,
storageDir, storageDir,
sessionPassword,
backupPassphrase, backupPassphrase,
sessionPassword,
backupFileContents, backupFileContents,
&error &error
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment