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.
|
|
// // 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, control: String) { if let navigation = self.view.navigationController { reciptWireframe.openRecieptFromTransactionReport(controlNo: control, transactionId: transactionId, source: navigation) } } }
|