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

Implement GetPermissionsInteractor

parent 435eed8f
......@@ -226,7 +226,7 @@ class AppModule {
@Provides
@Singleton
fun providePermissionInteractor(settingsRepository: SettingsRepository, serverRepository: CurrentServerRepository): PermissionsInteractor {
return PermissionsInteractor(settingsRepository, serverRepository)
fun providePermissionInteractor(settingsRepository: SettingsRepository, serverRepository: CurrentServerRepository): GetPermissionsInteractor {
return GetPermissionsInteractor(settingsRepository, serverRepository)
}
}
\ No newline at end of file
......@@ -2,8 +2,8 @@ package chat.rocket.android.server.domain
import javax.inject.Inject
class PermissionsInteractor @Inject constructor(private val settingsRepository: SettingsRepository,
private val currentServerRepository: CurrentServerRepository) {
class GetPermissionsInteractor @Inject constructor(private val settingsRepository: SettingsRepository,
private val currentServerRepository: CurrentServerRepository) {
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