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

Update CmixMakeReceptionIdentity functor

parent 3e6cb6ed
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -2,16 +2,19 @@ import Bindings
import XCTestDynamicOverlay
public struct CmixMakeReceptionIdentity {
public var run: () throws -> Data
public var run: () throws -> ReceptionIdentity
public func callAsFunction() throws -> Data {
public func callAsFunction() throws -> ReceptionIdentity {
try run()
}
}
extension CmixMakeReceptionIdentity {
public static func live(_ bindingsCmix: BindingsCmix) -> CmixMakeReceptionIdentity {
CmixMakeReceptionIdentity(run: bindingsCmix.makeReceptionIdentity)
CmixMakeReceptionIdentity {
let data = try bindingsCmix.makeReceptionIdentity()
return try ReceptionIdentity.decode(data)
}
}
}
......
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