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.
49 lines
1.3 KiB
49 lines
1.3 KiB
//
|
|
// WithdrawFromWalletDetailPresenter.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Amrit Giri on 7/6/20.
|
|
//Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class WithdrawFromWalletDetailPresenter {
|
|
|
|
// MARK: Properties
|
|
|
|
weak var view: WithdrawFromWalletDetailViewInterface?
|
|
var interactor: WithdrawFromWalletDetailInteractorInput?
|
|
var wireframe: WithdrawFromWalletDetailWireframeInput?
|
|
|
|
// MARK: Converting entities
|
|
}
|
|
|
|
// MARK: WithdrawFromWalletDetail module interface
|
|
|
|
extension WithdrawFromWalletDetailPresenter: WithdrawFromWalletDetailModuleInterface {
|
|
func makeApiRequest(password: String){
|
|
self.view?.showLoading()
|
|
self.interactor?.makeApiRequest(password: password)
|
|
}
|
|
func fetchModel(){
|
|
self.interactor?.fetchModel()
|
|
}
|
|
}
|
|
|
|
// MARK: WithdrawFromWalletDetail interactor output interface
|
|
|
|
extension WithdrawFromWalletDetailPresenter: WithdrawFromWalletDetailInteractorOutput {
|
|
func show(error: Error) {
|
|
self.view?.hideLoading()
|
|
self.view?.show(error: error.localizedDescription)
|
|
}
|
|
|
|
func success(message: String) {
|
|
self.view?.hideLoading()
|
|
self.view?.show(message: message)
|
|
}
|
|
func setModel(model: WithdrawInformation){
|
|
self.view?.setModel(model: model)
|
|
}
|
|
}
|