-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
954c740
commit 349303e
Showing
13 changed files
with
65 additions
and
117 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
app/src/main/java/dev/garousi/stockwatcher/feature/watchlist/data/EmptyClientListener.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
app/src/main/java/dev/garousi/stockwatcher/feature/watchlist/data/LightStreamerService.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
app/src/main/java/dev/garousi/stockwatcher/feature/watchlist/data/SubscriptionMode.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 7 additions & 24 deletions
31
app/src/main/java/dev/garousi/stockwatcher/feature/watchlist/di/WatchlistListModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,20 @@ | ||
package dev.garousi.stockwatcher.feature.watchlist.di | ||
|
||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import dev.garousi.stockwatcher.feature.watchlist.data.LightStreamerConnection | ||
import dev.garousi.stockwatcher.feature.watchlist.data.LightStreamerService | ||
import dev.garousi.stockwatcher.feature.watchlist.data.StockListDto | ||
import dev.garousi.stockwatcher.feature.watchlist.data.StockListLightStreamerService | ||
import garousi.dev.lightstreamer.service.LightStreamerService | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object WatchlistListModule { | ||
// @Provides | ||
// fun provideGetStockListUseCase( | ||
// repository: StockRepository | ||
// ): GetStockListUseCase { | ||
// return GetStockListUseCase(repository) | ||
// } | ||
// | ||
// @Provides | ||
// fun provideStockListUseCases( | ||
// getStockListUseCase: GetStockListUseCase | ||
// ): StockListUseCases { | ||
// return StockListUseCases(getStockList = getStockListUseCase) | ||
// } | ||
|
||
@Provides | ||
interface WatchlistListModule { | ||
@Binds | ||
@Singleton | ||
fun provideStockListLightStreamerService( | ||
connection: LightStreamerConnection, | ||
): LightStreamerService<StockListDto> { | ||
return StockListLightStreamerService(connection = connection) | ||
} | ||
fun bindsStockListLightStreamerService( | ||
impl: StockListLightStreamerService | ||
): LightStreamerService<StockListDto> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...streamer/listeners/EmptyClientListener.kt → ...streamer/listeners/EmptyClientListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...light_streamer/models/SubscriptionMode.kt → .../lightstreamer/models/SubscriptionMode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._streamer/service/LightStreamerService.kt → ...tstreamer/service/LightStreamerService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters