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.

36 lines
847 B

  1. //
  2. // SelectPaymentPresenter.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon Devik Kim on 30/04/2019.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class SelectPaymentPresenter {
  10. // MARK: Properties
  11. weak var view: SelectPaymentViewInterface?
  12. var interactor: SelectPaymentInteractorInput?
  13. var wireframe: SelectPaymentWireframeInput?
  14. // MARK: Converting entities
  15. }
  16. // MARK: SelectPayment module interface
  17. extension SelectPaymentPresenter: SelectPaymentModuleInterface {
  18. func viewIsReady() {
  19. self.interactor?.fetchAccounts()
  20. }
  21. }
  22. // MARK: SelectPayment interactor output interface
  23. extension SelectPaymentPresenter: SelectPaymentInteractorOutput {
  24. func setAccountModels(with models: [Account]?) {
  25. self.view?.setAccountModels(with: models)
  26. }
  27. }