// // RewardInteractor.swift // GME Remit // // Created by InKwon Devik Kim on 11/04/2019. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class RewardInteractor { // MARK: Properties weak var output: RewardInteractorOutput? private let service: RewardServiceType // MARK: Initialization init(service: RewardServiceType) { self.service = service } // MARK: Converting entities } // MARK: Reward interactor input interface extension RewardInteractor: RewardInteractorInput { func viewIsReady() { service.fetchProductList( success: { self.output?.setRewardProducts(models: $0) }) { self.output?.failure(error: $0) } } }