// // ExchangeRatesInteractor.swift // GMERemittance // // Created by gme_2 on 24/08/2018. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class ExchangeRatesInteractor { // MARK: Properties weak var output: ExchangeRatesInteractorOutput? private let service: ExchangeRatesServiceType // MARK: Initialization init(service: ExchangeRatesServiceType) { self.service = service } // MARK: Converting entities } // MARK: ExchangeRates interactor input interface extension ExchangeRatesInteractor: ExchangeRatesInteractorInput { func viewIsReady() { // self.service.fetchCountryCurrencyInfo(success: <#T##([ExchangeRateModel]?) -> ()#>, failure: <#T##(Error) -> ()#>) // self.fetchCountryCurrencyInfo(success: { (models) in // self.exchangeRateModels = models // }) { (error) in // self.hideProgressHud() // self.alert(message: error.localizedDescription) // } } }