ChatUserRepository

Functions

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