File tree Expand file tree Collapse file tree 3 files changed +46
-5
lines changed
domain/src/main/java/com/stop/domain Expand file tree Collapse file tree 3 files changed +46
-5
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import com.stop.domain.usecase.geoLocation.GeoLocationUseCase
5
5
import com.stop.domain.usecase.geoLocation.GeoLocationUseCaseImpl
6
6
import com.stop.domain.usecase.nearplace.GetNearPlacesUseCase
7
7
import com.stop.domain.usecase.nearplace.GetNearPlacesUseCaseImpl
8
- import com.stop.domain.usecase.nowlocation.GetBusNowLocationUseCase
9
- import com.stop.domain.usecase.nowlocation.GetBusNowLocationUseCaseImpl
10
- import com.stop.domain.usecase.nowlocation.GetSubwayTrainNowLocationUseCase
11
- import com.stop.domain.usecase.nowlocation.GetSubwayTrainNowLocationUseCaseImpl
8
+ import com.stop.domain.usecase.nowlocation.*
12
9
import dagger.Module
13
10
import com.stop.domain.usecase.route.GetLastTransportTimeUseCase
14
11
import com.stop.domain.usecase.route.GetLastTransportTimeUseCaseImpl
@@ -61,4 +58,12 @@ internal interface UseCaseModule {
61
58
@Singleton
62
59
fun provideSubwayTrainNowLocationUseCase (getSubwayTrainNowLocationUseCaseImpl : GetSubwayTrainNowLocationUseCaseImpl ): GetSubwayTrainNowLocationUseCase
63
60
61
+ @Binds
62
+ @Singleton
63
+ fun provideSubwayRouteUseCase (getSubwayRouteUseCaseImpl : GetSubwayRouteUseCaseImpl ): GetSubwayRouteUseCase
64
+
65
+ @Binds
66
+ @Singleton
67
+ fun provideNowStationLocationUseCase (getNowStationLocationUseCaseImpl : GetNowStationLocationUseCaseImpl ): GetNowStationLocationUseCase
68
+
64
69
}
Original file line number Diff line number Diff line change 1
1
package com.stop.domain.usecase.nowlocation
2
2
3
+ import com.stop.domain.model.nowlocation.NowStationLocationUseCaseItem
4
+
3
5
interface GetNowStationLocationUseCase {
4
6
5
- suspend operator fun invoke ()
7
+ suspend operator fun invoke (
8
+ version : Int ,
9
+ searchKeyword : String ,
10
+ centerLon : Double ,
11
+ centerLat : Double ,
12
+ appKey : String
13
+ ): NowStationLocationUseCaseItem
14
+
6
15
}
Original file line number Diff line number Diff line change
1
+ package com.stop.domain.usecase.nowlocation
2
+
3
+ import com.stop.domain.model.nowlocation.NowStationLocationUseCaseItem
4
+ import com.stop.domain.repository.NearPlaceRepository
5
+ import javax.inject.Inject
6
+
7
+ class GetNowStationLocationUseCaseImpl @Inject constructor(
8
+ private val nearPlaceRepository : NearPlaceRepository
9
+ ) : GetNowStationLocationUseCase {
10
+
11
+ override suspend fun invoke (
12
+ version : Int ,
13
+ searchKeyword : String ,
14
+ centerLon : Double ,
15
+ centerLat : Double ,
16
+ appKey : String
17
+ ): NowStationLocationUseCaseItem {
18
+ return nearPlaceRepository.getNowStationLocationInfo(
19
+ version = version,
20
+ searchKeyword = searchKeyword,
21
+ centerLon = centerLon,
22
+ centerLat = centerLat,
23
+ appKey = appKey
24
+ )
25
+ }
26
+
27
+ }
You can’t perform that action at this time.
0 commit comments