Last active
July 4, 2018 07:40
-
-
Save jazzbpn/003b733ccd3163939a0bfb90a9b028d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
class NoticePresenter:ViewToPresenterProtocol { | |
var view: PresenterToViewProtocol? | |
var interactor: PresenterToInteractorProtocol? | |
var router: PresenterToRouterProtocol? | |
func startFetchingNotice() { | |
interactor?.fetchNotice() | |
} | |
func showMovieController(navigationController: UINavigationController) { | |
router?.pushToMovieScreen(navigationConroller:navigationController) | |
} | |
} | |
extension NoticePresenter: InteractorToPresenterProtocol{ | |
func noticeFetchedSuccess(noticeModelArray: Array<NoticeModel>) { | |
view?.showNotice(noticeArray: noticeModelArray) | |
} | |
func noticeFetchFailed() { | |
view?.showError() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment