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.

43 lines
1.4 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. //
  2. // TransactionHistoryWireframe.swift
  3. // GMERemittance
  4. //
  5. // Created by gme_2 on 28/09/2018.
  6. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class TransactionHistoryWireframe {
  10. weak var view: UIViewController!
  11. let reciptWireframe = SendMoneyReceiptWireframe()
  12. }
  13. extension TransactionHistoryWireframe: TransactionHistoryWireframeInput {
  14. var storyboardName: String {return "TransactionHistory"}
  15. func getMainView() -> UIViewController {
  16. let service = TransactionHistoryService()
  17. let interactor = TransactionHistoryInteractor(service: service)
  18. let presenter = TransactionHistoryPresenter()
  19. let viewController = viewControllerFromStoryboard(of: TransactionHistoryViewController.self)
  20. viewController.presenter = presenter
  21. interactor.output = presenter
  22. presenter.interactor = interactor
  23. presenter.wireframe = self
  24. presenter.view = viewController
  25. self.view = viewController
  26. return viewController
  27. }
  28. func openReciept(transactionId: String, shouldShowCancelAmmendButton: Bool, control: String) {
  29. if let navigation = self.view.navigationController {
  30. reciptWireframe.openRecieptFromTransactionReport(controlNo: control, transactionId: transactionId, shouldShowCancelAmmendButton: shouldShowCancelAmmendButton, source: navigation)
  31. }
  32. }
  33. }