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

5 years ago
5 years ago
5 years ago
  1. //
  2. // InboundAccountsWireframe.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 2019/11/12.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class InboundAccountsWireframe {
  10. weak var view: UIViewController!
  11. }
  12. extension InboundAccountsWireframe: InboundAccountsWireframeInput {
  13. var storyboardName: String {return "InboundAccounts"}
  14. func getMainView() -> UIViewController {
  15. let service = InboundAccountsService()
  16. let interactor = InboundAccountsInteractor(service: service)
  17. let presenter = InboundAccountsPresenter()
  18. let viewController = viewControllerFromStoryboard(of: InboundAccountsViewController.self)
  19. viewController.presenter = presenter
  20. interactor.output = presenter
  21. presenter.interactor = interactor
  22. presenter.wireframe = self
  23. view = viewController
  24. return viewController
  25. }
  26. func addAccount(delegate: InboundPennyTestSubmitDelegate?) {
  27. AddInboundAccountWireframe().open(delegate: delegate, source: view)
  28. }
  29. func pennyTest(with model: PenneyTestRequest, delegate: InboundPennyTestSubmitDelegate?) {
  30. InboundPennyTestSubmitWireframe().open(with: model, delegate: delegate, on: view)
  31. }
  32. }