2023-04-11 19:20:25 +02:00
|
|
|
//
|
|
|
|
// LocationsListViewModel.swift
|
|
|
|
// Locations
|
|
|
|
//
|
|
|
|
// Created by Javier Cicchelli on 11/04/2023.
|
|
|
|
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Combine
|
|
|
|
import Core
|
|
|
|
|
2023-04-11 23:34:07 +02:00
|
|
|
class LocationsListViewModel: ObservableObject {
|
2023-04-11 21:36:16 +02:00
|
|
|
|
2023-04-11 19:20:25 +02:00
|
|
|
// MARK: Properties
|
|
|
|
|
2023-04-11 23:34:07 +02:00
|
|
|
weak var coordinator: LocationsListCoordination?
|
2023-04-11 19:20:25 +02:00
|
|
|
|
|
|
|
// MARK: Initialisers
|
|
|
|
|
2023-04-11 23:34:07 +02:00
|
|
|
init(coordinator: LocationsListCoordination) {
|
2023-04-11 19:20:25 +02:00
|
|
|
self.coordinator = coordinator
|
|
|
|
}
|
2023-04-11 23:34:07 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: - LocationsListViewModeling
|
|
|
|
|
|
|
|
extension LocationsListViewModel: LocationsListViewModeling {
|
2023-04-11 21:36:16 +02:00
|
|
|
|
|
|
|
// MARK: Functions
|
|
|
|
|
2023-04-11 23:34:07 +02:00
|
|
|
func openAddLocation() {
|
|
|
|
coordinator?.openAddLocation()
|
2023-04-11 21:36:16 +02:00
|
|
|
}
|
2023-04-11 23:34:07 +02:00
|
|
|
|
2023-04-11 19:20:25 +02:00
|
|
|
}
|