Skip to content

Commit 2145d48

Browse files
authored
Merge pull request #4 from engingulek/feature/create-home-protocols
created protocols
2 parents 45185ae + 5fef4f6 commit 2145d48

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//
2+
// HomeProtocols.swift
3+
// ICTMDBHomeModule
4+
//
5+
// Created by Engin Gülek on 12.11.2025.
6+
//
7+
8+
import UIKit
9+
10+
11+
12+
protocol ViewToPresenterHomeProtocol: AnyObject
13+
{
14+
var view : PresenterToViewHomeProtocol? {get}
15+
func viewDidLoad()
16+
}
17+
18+
19+
protocol PresenterToViewHomeProtocol : AnyObject{
20+
func relaodCollectionView()
21+
func sendError(errorState: (isHidden:Bool,message:String))
22+
func startLoading()
23+
func finishLoading()
24+
}
25+
26+
27+
protocol PresenterToInteractorHomeProtocol {
28+
var presenter: InteractorToPresenterHomeProtocol? {get set}
29+
func loadPopularMovies()
30+
func loadAiringMovies()
31+
}
32+
33+
34+
protocol InteractorToPresenterHomeProtocol {
35+
func sendPopularTvShows()
36+
func sendAiringTvShows()
37+
func sendError()
38+
}
39+
40+
protocol PresenterToRouterHomeProtocol {
41+
func toAllListPage(view:PresenterToViewHomeProtocol?)
42+
func toDetailPage(view:PresenterToViewHomeProtocol?)
43+
}
44+
45+

0 commit comments

Comments
 (0)