Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
93b2c2ab
Commit
93b2c2ab
authored
Feb 04, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement GetPermissionsInteractor
parent
435eed8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AppModule.kt
.../main/java/chat/rocket/android/dagger/module/AppModule.kt
+2
-2
GetPermissionsInteractor.kt
.../rocket/android/server/domain/GetPermissionsInteractor.kt
+2
-2
No files found.
app/src/main/java/chat/rocket/android/dagger/module/AppModule.kt
View file @
93b2c2ab
...
...
@@ -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
):
Get
PermissionsInteractor
{
return
Get
PermissionsInteractor
(
settingsRepository
,
serverRepository
)
}
}
\ No newline at end of file
app/src/main/java/chat/rocket/android/server/domain/GetPermissionsInteractor.kt
View file @
93b2c2ab
...
...
@@ -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
Get
PermissionsInteractor
@Inject
constructor
(
private
val
settingsRepository
:
SettingsRepository
,
private
val
currentServerRepository
:
CurrentServerRepository
)
{
private
fun
publicSettings
():
PublicSettings
?
=
settingsRepository
.
get
(
currentServerRepository
.
get
()
!!
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment