Created
May 3, 2020 18:21
-
-
Save furkankaplan/e9350d552efb137c2aeccfa4d918bb36 to your computer and use it in GitHub Desktop.
This file contains 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
// | |
// FirstProtocols.swift | |
// simple-viper-example-ios | |
// | |
// Created by Furkan Kaplan on 3.05.2020. | |
// Copyright © 2020 Furkan Kaplan. All rights reserved. | |
// | |
import Foundation | |
protocol FirstPresenterProtocol { | |
var view: FirstPresenterOutputProtocol? { get set } | |
var interactor: FirstInteractorProtocol? { get set } | |
var router: FirstRouterProtocol? { get set } | |
func routeToSecondModuleButtonTapped() | |
} | |
protocol FirstPresenterOutputProtocol { | |
func firstListFetched(with data: String) | |
func firstListFetchedFailed(with errorMessage: String) | |
} | |
protocol FirstRouterProtocol { | |
func routeToSecondModule(from: FirstPresenterOutputProtocol?) | |
} | |
protocol FirstInteractorProtocol { | |
var presenter: FirstInteractorOutputProtocol? { get set } | |
func fetchFirstList() | |
} | |
protocol FirstInteractorOutputProtocol { | |
func firstListFetched(with data: String) | |
func firstListFetchedFailed(with errorMessage: String) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment