Skip to content

Instantly share code, notes, and snippets.

@furkankaplan
Created May 3, 2020 18:21
Show Gist options
  • Save furkankaplan/e9350d552efb137c2aeccfa4d918bb36 to your computer and use it in GitHub Desktop.
Save furkankaplan/e9350d552efb137c2aeccfa4d918bb36 to your computer and use it in GitHub Desktop.
//
// 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