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.
46 lines
872 B
46 lines
872 B
//
|
|
// KycPresenter.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by gme_2 on 12/09/2018.
|
|
//Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class KycPresenter {
|
|
|
|
// MARK: Properties
|
|
|
|
weak var view: KycViewInterface?
|
|
var interactor: KycInteractorInput?
|
|
var wireframe: KycWireframeInput?
|
|
|
|
// MARK: Converting entities
|
|
}
|
|
|
|
// MARK: Kyc module interface
|
|
|
|
extension KycPresenter: KycModuleInterface {
|
|
|
|
func submit(model: KYCRequestModel) {
|
|
self.view?.showLoading()
|
|
self.interactor?.submit(model: model)
|
|
}
|
|
}
|
|
|
|
// MARK: Kyc interactor output interface
|
|
|
|
extension KycPresenter: KycInteractorOutput {
|
|
|
|
func submitSuccess() {
|
|
self.view?.hideLoading()
|
|
wireframe?.goToPennyTest()
|
|
}
|
|
|
|
func show(error: Error) {
|
|
self.view?.hideLoading()
|
|
self.view?.show(error: error.localizedDescription)
|
|
}
|
|
|
|
}
|