We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79d2666 commit 2104aeaCopy full SHA for 2104aea
GetHomeSafe/Problem Domain/UseCases/PoliceStationUseCase.swift
@@ -19,5 +19,13 @@ struct StubPoliceStationUseCase: PoliceStationUseCase {
19
return Just(policeStations).eraseToAnyPublisher()
20
}
21
22
-typealias DefaultPoliceStationUseCase = StubPoliceStationUseCase
23
#endif
+
24
+typealias DefaultPoliceStationUseCase = SpringPoliceStationUseCase
25
26
+struct SpringPoliceStationUseCase: PoliceStationUseCase {
27
+ let repository: PoliceStationRepository
28
+ func getPoliceStations(near currentLocation: Location) -> AnyPublisher<[PoliceStation], Never> {
29
+ repository.getPoliceStationsNear(currentLocation: currentLocation)
30
+ }
31
+}
0 commit comments