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.
 
 
 
 

39 lines
779 B

//
// HotLinePresenter.swift
// GME Remit
//
// Created by InKwon Devik Kim on 23/05/2019.
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
class HotLinePresenter {
// MARK: Properties
weak var view: HotLineViewInterface?
var interactor: HotLineInteractorInput?
var wireframe: HotLineWireframeInput?
}
// MARK: HotLine module interface
extension HotLinePresenter: HotLineModuleInterface {
func fetchHotLines() {
interactor?.fetchHotLines()
}
}
// MARK: HotLine interactor output interface
extension HotLinePresenter: HotLineInteractorOutput {
func setHotLine(with model: [HotLine]?) {
view?.setHotLine(with: model)
}
func setError(with error: Error) {
view?.setError(with: error)
}
}