Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 744 Bytes
import UIKit
protocol TracksPresenting: class {
var view: TracksViewing? { get set }
func viewDidLoad()
func didTapAdd(title: String, artist: String)
func didSwipeToDelete(at row: Int)
}
protocol TracksViewing: class {
func update(viewModels: [TrackViewModel])
func showError(_ description: String)
}
protocol TracksInteracting: class {
var delegate: TracksInteractorDelegate? { get set }
func fetchTracks()
func addTrack(title: String, artist: String)
func delete(track: Track)
}
protocol TracksInteractorDelegate: class {
func didFetch(tracks: [Track])
func handleError(_ error: ServiceError)
}
protocol TracksRouting: class {
var viewController: UIViewController? { get set }
}