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

Add CMixGetNodeRegistrationStatus functor

parent 8157dc37
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!23Update Bindings
......@@ -6,6 +6,7 @@ public struct CMix {
public var makeReceptionIdentity: CMixMakeReceptionIdentity
public var makeLegacyReceptionIdentity: CMixMakeLegacyReceptionIdentity
public var isHealthy: CMixIsHealthy
public var getNodeRegistrationStatus: CMixGetNodeRegistrationStatus
public var hasRunningProcesses: CMixHasRunningProcesses
public var networkFollowerStatus: CMixNetworkFollowerStatus
public var startNetworkFollower: CMixStartNetworkFollower
......@@ -25,6 +26,7 @@ extension CMix {
makeReceptionIdentity: .live(bindingsCMix),
makeLegacyReceptionIdentity: .live(bindingsCMix),
isHealthy: .live(bindingsCMix),
getNodeRegistrationStatus: .live(bindingsCMix),
hasRunningProcesses: .live(bindingsCMix),
networkFollowerStatus: .live(bindingsCMix),
startNetworkFollower: .live(bindingsCMix),
......@@ -45,6 +47,7 @@ extension CMix {
makeReceptionIdentity: .unimplemented,
makeLegacyReceptionIdentity: .unimplemented,
isHealthy: .unimplemented,
getNodeRegistrationStatus: .unimplemented,
hasRunningProcesses: .unimplemented,
networkFollowerStatus: .unimplemented,
startNetworkFollower: .unimplemented,
......
import Bindings
import XCTestDynamicOverlay
public struct CMixGetNodeRegistrationStatus {
public var run: () throws -> NodeRegistrationReport
public func callAsFunction() throws -> NodeRegistrationReport {
try run()
}
}
extension CMixGetNodeRegistrationStatus {
public static func live(_ bindingsCMix: BindingsCmix) -> CMixGetNodeRegistrationStatus {
CMixGetNodeRegistrationStatus {
let data = try bindingsCMix.getNodeRegistrationStatus()
return try NodeRegistrationReport.decode(data)
}
}
}
extension CMixGetNodeRegistrationStatus {
public static let unimplemented = CMixGetNodeRegistrationStatus(
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