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.
|
|
// // ProfileChangePhoneNumberWireframe.swift // GME Remit // // Created by Jeongbae Kong on 21/01/2020. //Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved. //
import UIKit
class ChangePersonalInformationWireframe { weak var view: UIViewController! var requestModel: ChangePersonalInformationModel? weak var output: ChangePersonalInformationWireframeOutput? private var type: TargetInfo = .mobile }
enum TargetInfo: String { case mobile = "m" case email = "e" }
extension ChangePersonalInformationWireframe: ChangePersonalInformationWireframeInput {
var storyboardName: String {return "ChangePersonalInformation"} func getMainView() -> UIViewController { let service = ChangePersonalInformationService() let interactor = ChangePersonalInformationInteractor(service: service) let presenter = ChangePersonalInformationPresenter() let viewController = viewControllerFromStoryboard(of: ChangePersonalInformationViewController.self) output = presenter viewController.presenter = presenter viewController.type = type interactor.output = presenter presenter.interactor = interactor presenter.wireframe = self presenter.view = viewController view = viewController return viewController } func openOTP(newValue: String) { self.view.openPasswordInput { (value) in self.output?.profileValidateOTP(OTPPassword: value) } } func goBackToPersonalInformation() { view.navigationController?.popViewController(animated: true) } func open( type: TargetInfo = .mobile, source: UIViewController ) { self.type = type self.pushMainView(on: source) } }
|