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
//
|
|
// KycForm1Presenter.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by gme_2 on 12/09/2018.
|
|
//Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class KycForm1Presenter {
|
|
|
|
// MARK: Properties
|
|
|
|
weak var view: KycForm1ViewInterface?
|
|
var interactor: KycForm1InteractorInput?
|
|
var wireframe: KycForm1WireframeInput?
|
|
|
|
// MARK: Converting entities
|
|
}
|
|
|
|
// MARK: KycForm1 module interface
|
|
|
|
extension KycForm1Presenter: KycForm1ModuleInterface {
|
|
func validate(model: KycForm1Model) {
|
|
self.interactor?.validate(model: model)
|
|
}
|
|
}
|
|
|
|
// MARK: KycForm1 interactor output interface
|
|
|
|
extension KycForm1Presenter: KycForm1InteractorOutput {
|
|
func show(errorsDick: (doesNotSucks: Bool, errorsDick: [String : String])) {
|
|
self.view?.show(result: errorsDick)
|
|
}
|
|
|
|
func viewIsReady() {
|
|
self.view?.showLoading()
|
|
self.interactor?.viewIsReady()
|
|
}
|
|
|
|
func show(error: Error) {
|
|
self.view?.hideLoading()
|
|
self.view?.show(error: error.localizedDescription)
|
|
}
|
|
|
|
func show(model: KycModel) {
|
|
self.view?.hideLoading()
|
|
self.view?.show(model: model)
|
|
}
|
|
}
|