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.
41 lines
1.2 KiB
41 lines
1.2 KiB
//
|
|
// InboundAccountsWireframe.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon James Kim on 2019/11/12.
|
|
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class InboundAccountsWireframe {
|
|
weak var view: UIViewController!
|
|
}
|
|
|
|
extension InboundAccountsWireframe: InboundAccountsWireframeInput {
|
|
|
|
var storyboardName: String {return "InboundAccounts"}
|
|
|
|
func getMainView() -> UIViewController {
|
|
let service = InboundAccountsService()
|
|
let interactor = InboundAccountsInteractor(service: service)
|
|
let presenter = InboundAccountsPresenter()
|
|
let viewController = viewControllerFromStoryboard(of: InboundAccountsViewController.self)
|
|
|
|
viewController.presenter = presenter
|
|
interactor.output = presenter
|
|
presenter.interactor = interactor
|
|
presenter.wireframe = self
|
|
|
|
view = viewController
|
|
return viewController
|
|
}
|
|
|
|
func addAccount(delegate: InboundPennyTestSubmitDelegate?) {
|
|
AddInboundAccountWireframe().open(delegate: delegate, source: view)
|
|
}
|
|
|
|
func pennyTest(with model: PenneyTestRequest, delegate: InboundPennyTestSubmitDelegate?) {
|
|
InboundPennyTestSubmitWireframe().open(with: model, delegate: delegate, on: view)
|
|
}
|
|
}
|