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.
|
|
// // 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) } } }
|