Add AuthenticationRestClient protocol as an authentication interface to MXRestClient.

This commit is contained in:
Doug
2022-05-19 13:18:47 +01:00
committed by Doug
parent ac755f11f5
commit 59927e278c
9 changed files with 70 additions and 26 deletions
@@ -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