// // InternationalTopupInteractor.swift // GME Remit // // Created by InKwon James Kim on 2019/10/30. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class InternationalTopupInteractor { // MARK: Properties weak var output: InternationalTopupInteractorOutput? private let service: InternationalTopupServiceType // MARK: Initialization init(service: InternationalTopupServiceType) { self.service = service } } // MARK: InternationalTopup interactor input interface extension InternationalTopupInteractor: InternationalTopupInteractorInput { func fetchCardList(type: String, mobile: String) { service.fetchCardList( type: type, mobile: mobile, success: {[weak self] in self?.output?.setModel(with: $0) }, failure: {[weak self] in self?.output?.setError(with: $0) } ) } }