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.

39 lines
1.0 KiB

6 years ago
6 years ago
  1. //
  2. // ExchangeRatesInteractor.swift
  3. // GMERemittance
  4. //
  5. // Created by gme_2 on 24/08/2018.
  6. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class ExchangeRatesInteractor {
  10. // MARK: Properties
  11. weak var output: ExchangeRatesInteractorOutput?
  12. private let service: ExchangeRatesServiceType
  13. // MARK: Initialization
  14. init(service: ExchangeRatesServiceType) {
  15. self.service = service
  16. }
  17. // MARK: Converting entities
  18. }
  19. // MARK: ExchangeRates interactor input interface
  20. extension ExchangeRatesInteractor: ExchangeRatesInteractorInput {
  21. func viewIsReady() {
  22. // self.service.fetchCountryCurrencyInfo(success: <#T##([ExchangeRateModel]?) -> ()#>, failure: <#T##(Error) -> ()#>)
  23. // self.fetchCountryCurrencyInfo(success: { (models) in
  24. // self.exchangeRateModels = models
  25. // }) { (error) in
  26. // self.hideProgressHud()
  27. // self.alert(message: error.localizedDescription)
  28. // }
  29. }
  30. }