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.
43 lines
1.0 KiB
43 lines
1.0 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 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)
|
|
}
|
|
}
|