// // TransactionHistoryWireframe.swift // GMERemittance // // Created by gme_2 on 28/09/2018. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. // import UIKit class TransactionHistoryWireframe { weak var view: UIViewController! let reciptWireframe = SendMoneyReceiptWireframe() } extension TransactionHistoryWireframe: TransactionHistoryWireframeInput { var storyboardName: String {return "TransactionHistory"} func getMainView() -> UIViewController { let service = TransactionHistoryService() let interactor = TransactionHistoryInteractor(service: service) let presenter = TransactionHistoryPresenter() let viewController = viewControllerFromStoryboard(of: TransactionHistoryViewController.self) viewController.presenter = presenter interactor.output = presenter presenter.interactor = interactor presenter.wireframe = self presenter.view = viewController self.view = viewController return viewController } func openReciept(transactionId: String, shouldShowCancelAmmendButton: Bool, control: String) { if let navigation = self.view.navigationController { reciptWireframe.openRecieptFromTransactionReport(controlNo: control, transactionId: transactionId, shouldShowCancelAmmendButton: shouldShowCancelAmmendButton, source: navigation) } } }