// // WithdrawFromWalletDetailPresenter.swift // GME Remit // // Created by Amrit Giri on 7/6/20. //Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class WithdrawFromWalletDetailPresenter { // MARK: Properties weak var view: WithdrawFromWalletDetailViewInterface? var interactor: WithdrawFromWalletDetailInteractorInput? var wireframe: WithdrawFromWalletDetailWireframeInput? // MARK: Converting entities } // MARK: WithdrawFromWalletDetail module interface extension WithdrawFromWalletDetailPresenter: WithdrawFromWalletDetailModuleInterface { func makeApiRequest(password: String){ self.view?.showLoading() self.interactor?.makeApiRequest(password: password) } func fetchModel(){ self.interactor?.fetchModel() } } // MARK: WithdrawFromWalletDetail interactor output interface extension WithdrawFromWalletDetailPresenter: WithdrawFromWalletDetailInteractorOutput { func show(error: Error) { self.view?.hideLoading() self.view?.show(error: error.localizedDescription) } func success(message: String) { self.view?.hideLoading() self.view?.show(message: message) } func setModel(model: WithdrawInformation){ self.view?.setModel(model: model) } }