ChatUserInteractor

open class ChatUserInteractor(chatUserRepository: ChatUserRepository)

Constructors

Link copied to clipboard
constructor(chatUserRepository: ChatUserRepository)

Functions

Link copied to clipboard
fun addChatToUserChat(idConversation: String): Completable
Link copied to clipboard
fun createUser(email: String, password: String, image: String, name: String, tokenPush: String): Single<ChatUserModel>
Link copied to clipboard
fun eraseUser(): Completable
Link copied to clipboard
Link copied to clipboard
fun getMyUser(): Maybe<ChatUserModel>
Link copied to clipboard
fun getUser(id: String): Maybe<ChatUserModel>
Link copied to clipboard
fun login(email: String, password: String): Maybe<ChatUserModel>
fun login(email: String, password: String, pushToken: String): Completable
Link copied to clipboard
suspend fun loginSuspend(email: String, password: String, pushToken: String)
Link copied to clipboard
fun logout(userId: String): Completable
Link copied to clipboard
suspend fun logoutSuspend(userId: String)
Link copied to clipboard
fun observeUnreads(): Flowable<Int>
Link copied to clipboard
fun setUser(chatUserModel: ChatUserModel): Completable
Link copied to clipboard
fun testLogin(email: String = "test@zapp-studio.com", password: String = "zapptestchat"): Single<ChatUserModel>
Link copied to clipboard
fun updateTokenPush(tokenPush: String): Completable
Link copied to clipboard
fun updateUnread(chatUserModel: ChatUserModel, unread: Int): Completable