Skip to content
Snippets Groups Projects
Commit 0b11e481 authored by Taras's avatar Taras
Browse files

Create datasource

parent bef451de
No related branches found
No related tags found
No related merge requests found
package com.futo.circles.feature.people.user
import android.content.Context
import com.futo.circles.R
import com.futo.circles.provider.MatrixSessionProvider
class UserDataSource(
context: Context,
userId: String
) {
private val session by lazy {
MatrixSessionProvider.currentSession ?: throw IllegalArgumentException(
context.getString(R.string.session_is_not_created)
)
}
val userLiveData = session.userService().getUserLive(userId)
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment