mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-28 01:24:03 +03:00
Add generic save method
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
c4c183ac39
commit
d7654f8476
1 changed files with 6 additions and 0 deletions
|
@ -143,6 +143,12 @@ class UserManager internal constructor(private val userRepository: UsersReposito
|
|||
}
|
||||
}
|
||||
|
||||
fun saveUser(user: User): Single<Int> {
|
||||
return Single.fromCallable {
|
||||
userRepository.updateUser(user)
|
||||
}
|
||||
}
|
||||
|
||||
fun setUserAsActive(user: User): Single<Boolean> {
|
||||
return userRepository.setUserAsActiveWithId(user.id!!)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue