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

Add GetFileTransferParams functor

parent d246938f
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
import Bindings
import XCTestDynamicOverlay
public struct GetFileTransferParams {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension GetFileTransferParams {
public static let liveDefault = GetFileTransferParams {
guard let data = BindingsGetDefaultFileTransferParams() else {
fatalError("BindingsGetDefaultFileTransferParams returned `nil`")
}
return data
}
}
extension GetFileTransferParams {
public static let unimplemented = GetCmixParams(
run: XCTUnimplemented("\(Self.self)")
)
}
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