fun getLastMessages(chatId: Int, limit: Int): Single<List<MessageModel>>
fun observeChat(chatId: Int, from: Int?, to: Int?): Flowable<List<MessageModel>>
fun sendMessage(messageModel: MessageSendModel): Single<MessageModel>
fun readMessagesInTeam(chatId: Int): Completable
fun insertMessage(messageModel: MessageServerModel): Single<Unit>
fun insertLocalMessage(messageModel: MessageModel): Single<MessageModel>
fun observeOnNewMessage(): Observable<MessageModel>
fun getPendingMessage(): Observable<MessageSendModel>
fun deleteMessage(localId: Long): Completable
fun resendMessage(localId: Long): Completable
fun getQuestions(limit: Int, from: Int, direction: PaginatorDirection): Single<List<MessageModel>>
fun getLastQuestions(limit: Int): Single<List<MessageModel>>
fun observeQuestionInfo(messageId: Int): Observable<QuestionInfo>
fun getQuestionByChatId(chatId: Int): Single<MessageModel>
fun observeQuestion(messageId: Int): Observable<MessageModel>
fun observeQuestionPoll(messageId: Int): Observable<List<QuestionPoll>>
fun observeVariants(): Observable<List<Variant>>
ну гист же, или пастбин
Обсуждают сегодня