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.
|
|
// // RewardPresenter.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 RewardPresenter { // MARK: Properties weak var view: RewardViewInterface? var interactor: RewardInteractorInput? var wireframe: RewardWireframeInput? // MARK: Converting entities }
// MARK: Reward module interface
extension RewardPresenter: RewardModuleInterface { func viewIsReady() { view?.startLoading() interactor?.viewIsReady() } func goRedeemViewController(with model: RewardProduct?) { wireframe?.goRedeemViewController(with: model) } }
// MARK: Reward interactor output interface
extension RewardPresenter: RewardInteractorOutput { func setRewardProducts(models: [RewardProduct]?) { view?.endLoading() view?.setRewardProducts(models: models) } func failure(error: Error) { view?.endLoading() view?.failure(error: error) } }
|