Commit 13c048da authored by Romain Bertozzi's avatar Romain Bertozzi Committed by Kateryna Kostiuk

export: harmonize exportOnRingEnded method name

This commit fixes typos and harmonize the method name of the applicative
delegate of exportOnRingEnded.
This will be useful for the new AccountsService.

Change-Id: I8e90c23344a1890ffdf7548a1ef619bf4655fca8
Reviewed-by: Kateryna Kostiuk's avatarKateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
Tuleap: #1752
parent 768e8b7a
......@@ -69,7 +69,7 @@ static id <AccountAdapterDelegate> _delegate;
NSString* accountId = [NSString stringWithUTF8String:account_id.c_str()];
NSInteger stateN = state;
NSString* pinN = [NSString stringWithUTF8String:pin.c_str()];
[AccountAdapter.delegate exportOnRingEndededForAccout:accountId state:stateN pin:pinN];
[AccountAdapter.delegate exportOnRingEndedFor:accountId state:stateN pin:pinN];
}
}));
......
......@@ -23,5 +23,5 @@
func accountsChanged()
func registrationStateChanged(with response: RegistrationResponse)
func knownDevicesChanged(for account: String, devices: [String: String])
func exportOnRingEndeded(forAccout account: String, state: Int, pin: String)
func exportOnRingEnded(for account: String, state: Int, pin: String)
}
......@@ -444,8 +444,7 @@ class AccountsService: AccountAdapterDelegate {
}
}
func exportOnRingEndeded(forAccout account: String, state: Int, pin: String) {
func exportOnRingEnded(for account: String, state: Int, pin: String) {
let changedAccount = getAccount(fromAccountId: account)
if let changedAccount = changedAccount {
let accountHelper = AccountModelHelper(withAccount: changedAccount)
......@@ -457,7 +456,6 @@ class AccountsService: AccountAdapterDelegate {
self.responseStream.onNext(event)
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment