mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Add AuthenticationRestClient protocol as an authentication interface to MXRestClient.
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ class RegistrationWizard {
|
||||
var sendAttempt: UInt = 0
|
||||
}
|
||||
|
||||
let client: MXRestClient
|
||||
let client: AuthenticationRestClient
|
||||
let sessionCreator: SessionCreator
|
||||
|
||||
private(set) var state: State
|
||||
@@ -59,7 +59,7 @@ class RegistrationWizard {
|
||||
state.isRegistrationStarted
|
||||
}
|
||||
|
||||
init(client: MXRestClient, sessionCreator: SessionCreator = SessionCreator()) {
|
||||
init(client: AuthenticationRestClient, sessionCreator: SessionCreator = SessionCreator()) {
|
||||
self.client = client
|
||||
self.sessionCreator = sessionCreator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user