Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions ICTMDBHomeModule/HomeProtocols.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// HomeProtocols.swift
// ICTMDBHomeModule
//
// Created by Engin Gülek on 12.11.2025.
//

import UIKit



protocol ViewToPresenterHomeProtocol: AnyObject
{
var view : PresenterToViewHomeProtocol? {get}
func viewDidLoad()
}


protocol PresenterToViewHomeProtocol : AnyObject{
func relaodCollectionView()
func sendError(errorState: (isHidden:Bool,message:String))
func startLoading()
func finishLoading()
}


protocol PresenterToInteractorHomeProtocol {
var presenter: InteractorToPresenterHomeProtocol? {get set}
func loadPopularMovies()
func loadAiringMovies()
}


protocol InteractorToPresenterHomeProtocol {
func sendPopularTvShows()
func sendAiringTvShows()
func sendError()
}

protocol PresenterToRouterHomeProtocol {
func toAllListPage(view:PresenterToViewHomeProtocol?)
func toDetailPage(view:PresenterToViewHomeProtocol?)
}