// // SelectCouponPresenter.swift // GME Remit // // Created by InKwon Devik Kim on 30/05/2019. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class SelectCouponPresenter { // MARK: Properties weak var view: SelectCouponViewInterface? var interactor: SelectCouponInteractorInput? var wireframe: SelectCouponWireframeInput? } // MARK: SelectCoupon module interface extension SelectCouponPresenter: SelectCouponModuleInterface { func fetchCoupons() { interactor?.fetchCoupons() } } // MARK: SelectCoupon interactor output interface extension SelectCouponPresenter: SelectCouponInteractorOutput { func setCoupons(didSelect coupon: CouponBoxModel?, with coupons: [CouponBoxModel]?) { view?.setCoupons(didSelect: coupon, with: coupons) } func error(with error: Error) { view?.error(with: error) } }