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

Use default JSON params

parent bb4beae0
No related branches found
No related tags found
1 merge request!102Release 1.0.0
......@@ -8,7 +8,7 @@ public struct CMixConnect {
withAuthentication: Bool,
e2eId: Int,
recipientContact: Data,
e2eParamsJSON: Data
e2eParamsJSON: Data = GetE2EParams.liveDefault()
) throws -> Connection {
try run(withAuthentication, e2eId, recipientContact, e2eParamsJSON)
}
......
......@@ -18,7 +18,7 @@ extension CMixManagerCreate {
directoryPath: String,
fileManager: FileManager,
newCMix: NewCMix,
getCMixParams: GetCMixParams,
getCMixParams: GetCMixParams = .liveDefault,
loadCMix: LoadCMix
) -> CMixManagerCreate {
CMixManagerCreate {
......
......@@ -6,8 +6,8 @@ public struct InitFileTransfer {
public func callAsFunction(
e2eId: Int,
e2eFileTransferParamsJSON: Data,
fileTransferParamsJSON: Data,
e2eFileTransferParamsJSON: Data = GetE2EFileTransferParams.liveDefault(),
fileTransferParamsJSON: Data = GetFileTransferParams.liveDefault(),
callback: ReceiveFileCallback
) throws -> FileTransfer {
try run(e2eId, e2eFileTransferParamsJSON, fileTransferParamsJSON, callback)
......
......@@ -7,7 +7,7 @@ public struct LoadCMix {
public func callAsFunction(
storageDir: String,
password: Data,
cMixParamsJSON: Data
cMixParamsJSON: Data = GetCMixParams.liveDefault()
) throws -> CMix {
try run(storageDir, password, cMixParamsJSON)
}
......
......@@ -9,7 +9,7 @@ public struct Login {
cMixId: Int,
authCallbacks: AuthCallbacks? = nil,
identity: ReceptionIdentity,
e2eParamsJSON: Data
e2eParamsJSON: Data = GetE2EParams.liveDefault()
) throws -> E2E {
try run(ephemeral, cMixId, authCallbacks, identity, e2eParamsJSON)
}
......
......@@ -8,7 +8,7 @@ public struct LookupUD {
e2eId: Int,
udContact: Data,
udId: Data,
singleRequestParamsJSON: Data,
singleRequestParamsJSON: Data = GetSingleUseParams.liveDefault(),
callback: UdLookupCallback
) throws -> SingleUseSendReport {
try run(e2eId, udContact, udId, singleRequestParamsJSON, callback)
......
......@@ -8,7 +8,7 @@ public struct SearchUD {
e2eId: Int,
udContact: Data,
facts: [Fact],
singleRequestParamsJSON: Data,
singleRequestParamsJSON: Data = GetSingleUseParams.liveDefault(),
callback: UdSearchCallback
) throws -> SingleUseSendReport {
try run(e2eId, udContact, facts, singleRequestParamsJSON, callback)
......
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