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.
|
|
// // InviteUserPresenter.swift // GME Remit // // Created by Armaan Shrestha on 21/08/2022. //Copyright © 2022 Gobal Money Express Co. Ltd. All rights reserved. //
import Foundation
class InviteUserPresenter { // MARK: Properties weak var view: InviteUserViewInterface? var interactor: InviteUserInteractorInput? var wireframe: InviteUserWireframeInput?
// MARK: Converting entities }
// MARK: InviteUser module interface
extension InviteUserPresenter: InviteUserModuleInterface { func fetchData() { view?.progress(isShow: true) interactor?.fetchData() } }
// MARK: InviteUser interactor output interface
extension InviteUserPresenter: InviteUserInteractorOutput { func obtained(data: ReferralModel) { view?.progress(isShow: false) view?.obtained(data: data) } func obtained(error: String) { view?.progress(isShow: false) view?.obtained(error: error) } }
|