Defined the properties and functions to load and to retrieve data from the Persistence stack.
This commit is contained in:
parent
8c50ce3653
commit
94d905ffc3
@ -8,6 +8,7 @@
|
||||
|
||||
import Combine
|
||||
import Foundation
|
||||
import Persistence
|
||||
|
||||
protocol LocationsListViewModeling: AnyObject {
|
||||
|
||||
@ -16,9 +17,13 @@ protocol LocationsListViewModeling: AnyObject {
|
||||
var coordinator: LocationsListCoordination? { get set }
|
||||
|
||||
var viewStatusPublisher: Published<LocationsListViewStatus>.Publisher { get }
|
||||
var numberOfSectionsInData: Int { get }
|
||||
|
||||
// MARK: Functions
|
||||
|
||||
func openAddLocation()
|
||||
func loadLocations()
|
||||
func numberOfDataItems(in section: Int) -> Int
|
||||
func dataItem(at indexPath: IndexPath) -> Location
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user