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

Refactor AuthCallbacks

parent 0713c7e1
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -2,11 +2,17 @@ import Bindings
import XCTestDynamicOverlay
public struct AuthCallbacks {
public init(handle: @escaping (AuthCallback) -> Void) {
public enum Callback: Equatable {
case confirm(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
case request(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
case reset(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
}
public init(handle: @escaping (Callback) -> Void) {
self.handle = handle
}
public var handle: (AuthCallback) -> Void
public var handle: (Callback) -> Void
}
extension AuthCallbacks {
......
import Foundation
public enum AuthCallback: Equatable {
case confirm(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
case request(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
case reset(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
}
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