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.
51 lines
1.2 KiB
51 lines
1.2 KiB
//
|
|
// 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 openMail(controlNO: String, transactionId: String, type: MailBoxType) {
|
|
self.wireframe?.openMail(controlNO: controlNO, transactionId: transactionId, type: type)
|
|
}
|
|
|
|
func viewIsReady(type: ReceiptType) {
|
|
self.view?.showLoading()
|
|
self.interactor?.viewIsReady(type: type)
|
|
}
|
|
|
|
func dismiss() {
|
|
self.wireframe?.dismiss()
|
|
}
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
}
|