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.
 
 
 
 

43 lines
939 B

//
// GmeContactsPresenter.swift
// GMERemittance
//
// Created by gme_2 on 25/08/2018.
//Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
class GmeContactsPresenter {
// MARK: Properties
weak var view: GmeContactsViewInterface?
var interactor: GmeContactsInteractorInput?
var wireframe: GmeContactsWireframeInput?
// MARK: Converting entities
}
// MARK: GmeContacts module interface
extension GmeContactsPresenter: GmeContactsModuleInterface {
func fetchBranch() {
view?.startLoading()
interactor?.fetchBranches()
}
}
// MARK: GmeContacts interactor output interface
extension GmeContactsPresenter: GmeContactsInteractorOutput {
func setBranchModel(with model: [Branch]?) {
view?.endLoading()
view?.setBranchModel(with: model)
}
func setBranchesError(with error: Error) {
view?.endLoading()
view?.setBranchesError(with: error)
}
}