ChatInteractor

open class ChatInteractor(chatRepository: ChatRepository, userInteractor: ChatUserInteractor)

Constructors

Link copied to clipboard
constructor(chatRepository: ChatRepository, userInteractor: ChatUserInteractor)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addToGroup(chat: ChatModel, user: ChatUserModel): Completable
Link copied to clipboard
fun createChat(chat: ChatModel, members: List<String>): Maybe<ChatModel>
Link copied to clipboard
fun deleteConversation(chat: ChatModel): Completable
Link copied to clipboard
fun getChat(id: String): Maybe<ChatModel>
Link copied to clipboard
fun getConversation(userId: String): Maybe<ChatModel>
Link copied to clipboard
fun getMyChats(starAt: Long, filter: String): Single<List<ChatModel>>
Link copied to clipboard
fun hasChats(): Maybe<Boolean>
Link copied to clipboard
fun leftChat(chat: ChatModel): Completable
Link copied to clipboard
fun makeUserAdmin(chat: ChatModel, user: ChatUserModel): Completable
Link copied to clipboard
fun observeChat(chatId: String): Flowable<ChatModel>
Link copied to clipboard
fun observeChatsByUser(userModel: ChatUserModel): Flowable<String>
Link copied to clipboard
fun observeDeleteChat(): Flowable<String>
Link copied to clipboard
Link copied to clipboard
fun removeUserFromChat(chat: ChatModel, chatUserModel: ChatUserModel): Completable
Link copied to clipboard
fun updateChat(chat: ChatModel): Maybe<ChatModel>
Link copied to clipboard
fun updatePushActive(chat: ChatModel, pushActive: Boolean): Completable
Link copied to clipboard
fun updateUnreadConversation(userModel: ChatUserModel, chatModel: ChatModel, value: Int): Completable