|
|
@ -21,9 +21,9 @@ class RecipientsPresenter { |
|
|
|
// MARK: Recipients module interface |
|
|
|
|
|
|
|
extension RecipientsPresenter: RecipientsModuleInterface { |
|
|
|
func openSelectAccount(with accounts: [Account]) { |
|
|
|
wireframe?.openSelectAccount(with: accounts) |
|
|
|
} |
|
|
|
func openSendMoneyCalculate(who recipient: Recipient) { |
|
|
|
wireframe?.goNextStep(who: recipient) |
|
|
|
} |
|
|
|
|
|
|
|
func openAddRecipient(with delegate: SetupRecipientDelegate) { |
|
|
|
wireframe?.openAddRecipient(with: delegate) |
|
|
@ -42,10 +42,6 @@ extension RecipientsPresenter: RecipientsModuleInterface { |
|
|
|
viewModel?.progress(isShow: true) |
|
|
|
interactor?.fetchRecipients(isRefresh: isRefresh) |
|
|
|
} |
|
|
|
|
|
|
|
func goNextStep(who recipient: Recipient, with account: Account) { |
|
|
|
wireframe?.goNextStep(who: recipient, with: account) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: Recipients interactor output interface |
|
|
@ -56,10 +52,6 @@ extension RecipientsPresenter: RecipientsInteractorOutput { |
|
|
|
viewModel?.setRecipients(using: model) |
|
|
|
} |
|
|
|
|
|
|
|
func setAccounts(using model: [Account]) { |
|
|
|
viewModel?.setAccounts(using: model) |
|
|
|
} |
|
|
|
|
|
|
|
func setError(with error: Error) { |
|
|
|
viewModel?.progress(isShow: false) |
|
|
|
viewModel?.setError(with: error) |
|
|
@ -68,10 +60,6 @@ extension RecipientsPresenter: RecipientsInteractorOutput { |
|
|
|
} |
|
|
|
|
|
|
|
extension RecipientsPresenter: RecipientsWireframeOutput { |
|
|
|
func setSelectedAccount(_ account: Account) { |
|
|
|
viewModel?.setSelectedAccount(account) |
|
|
|
} |
|
|
|
|
|
|
|
func openedSetupRecipient() { |
|
|
|
viewModel?.progress(isShow: false) |
|
|
|
} |
|
|
|