// // RedeemCashPickUpPresenter.swift // GME Remit // // Created by Amrit Giri on 7/6/20. //Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class RedeemCashPickUpPresenter { // MARK: Properties weak var view: RedeemCashPickUpViewInterface? var interactor: RedeemCashPickUpInteractorInput? var wireframe: RedeemCashPickUpWireframeInput? // MARK: Converting entities } // MARK: RedeemCashPickUp module interface extension RedeemCashPickUpPresenter: RedeemCashPickUpModuleInterface { func search(controlNo: String){ self.view?.showLoading() self.interactor?.search(controlNo: controlNo) } } // MARK: RedeemCashPickUp interactor output interface extension RedeemCashPickUpPresenter: RedeemCashPickUpInteractorOutput { func show(error: Error) { self.view?.hideLoading() self.view?.show(error: error.localizedDescription) } func success(model: TransactionModel) { self.view?.hideLoading() self.wireframe?.openReceipt(with: model) } }