// // SendMoneyReceiptPresenter.swift // GMERemittance // // Created by gme_2 on 04/09/2018. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class SendMoneyReceiptPresenter { // MARK: Properties weak var view: SendMoneyReceiptViewInterface? var interactor: SendMoneyReceiptInteractorInput? var wireframe: SendMoneyReceiptWireframeInput? // MARK: Converting entities } // MARK: SendMoneyReceipt module interface extension SendMoneyReceiptPresenter: SendMoneyReceiptModuleInterface { func viewIsReady() { self.view?.showLoading() self.interactor?.viewIsReady() } } // MARK: SendMoneyReceipt interactor output interface extension SendMoneyReceiptPresenter: SendMoneyReceiptInteractorOutput { func show(model: SendMoneyReciept) { self.view?.hideLoading() self.view?.show(model: model) } func show(error: Error) { self.view?.hideLoading() self.view?.show(error: error.localizedDescription) } }