You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // SendMoneyVerificationPresenter.swift // GMERemittance // // Created by gme_2 on 28/08/2018. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. //
import Foundation
class SendMoneyVerificationPresenter { // MARK: Properties weak var view: SendMoneyVerificationViewInterface? var interactor: SendMoneyVerificationInteractorInput? var wireframe: SendMoneyVerificationWireframeInput? // MARK: Converting entities }
// MARK: SendMoneyVerification module interface
extension SendMoneyVerificationPresenter: SendMoneyVerificationModuleInterface { func submit(model: SendMoneyRequestModel, reciepient: Recipient) { self.view?.showLoading() self.interactor?.submit(model: model, reciepient: reciepient) } func openReciept(transactionId: String) { self.wireframe?.openReciept(transactionId: transactionId) } }
// MARK: SendMoneyVerification interactor output interface
extension SendMoneyVerificationPresenter: SendMoneyVerificationInteractorOutput { func show(error: Error) { self.view?.hideLoading() self.view?.show(error: error.localizedDescription) } func show(model: SendMoneySubmitModelContainer?) { self.view?.hideLoading() self.view?.show(model: model) } }
|