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.
 
 
 
 

44 lines
1.1 KiB

//
// 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)
}
}