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.

34 lines
805 B

  1. //
  2. // SelectPaymentInteractor.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 SelectPaymentInteractor {
  10. // MARK: Properties
  11. weak var output: SelectPaymentInteractorOutput?
  12. private let service: SelectPaymentServiceType
  13. private let models: [Account]?
  14. // MARK: Initialization
  15. init(service: SelectPaymentServiceType, models: [Account]?) {
  16. self.service = service
  17. self.models = models
  18. }
  19. // MARK: Converting entities
  20. }
  21. // MARK: SelectPayment interactor input interface
  22. extension SelectPaymentInteractor: SelectPaymentInteractorInput {
  23. func fetchAccounts() {
  24. self.output?.setAccountModels(with: self.models)
  25. }
  26. }