Commit 93b2c2ab authored by Leonardo Aramaki's avatar Leonardo Aramaki

Implement GetPermissionsInteractor

parent 435eed8f
...@@ -226,7 +226,7 @@ class AppModule { ...@@ -226,7 +226,7 @@ class AppModule {
@Provides @Provides
@Singleton @Singleton
fun providePermissionInteractor(settingsRepository: SettingsRepository, serverRepository: CurrentServerRepository): PermissionsInteractor { fun providePermissionInteractor(settingsRepository: SettingsRepository, serverRepository: CurrentServerRepository): GetPermissionsInteractor {
return PermissionsInteractor(settingsRepository, serverRepository) return GetPermissionsInteractor(settingsRepository, serverRepository)
} }
} }
\ No newline at end of file
...@@ -2,8 +2,8 @@ package chat.rocket.android.server.domain ...@@ -2,8 +2,8 @@ package chat.rocket.android.server.domain
import javax.inject.Inject import javax.inject.Inject
class PermissionsInteractor @Inject constructor(private val settingsRepository: SettingsRepository, class GetPermissionsInteractor @Inject constructor(private val settingsRepository: SettingsRepository,
private val currentServerRepository: CurrentServerRepository) { private val currentServerRepository: CurrentServerRepository) {
private fun publicSettings(): PublicSettings? = settingsRepository.get(currentServerRepository.get()!!) private fun publicSettings(): PublicSettings? = settingsRepository.get(currentServerRepository.get()!!)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment