IChatController

interface IChatController

Properties

Link copied to clipboard
abstract val channels: List<ChatChannel>
Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun getMessagesPaginated(timestamp: Long, size: Int, offset: Int, reversed: Boolean, channelId: String?): Result<GetMessagesResult, String>
Link copied to clipboard
abstract suspend fun loadChatMessages()
Link copied to clipboard
abstract suspend fun sendFileMessageToPeers(fileUri: Uri, peerIds: List<String>)
abstract suspend fun sendFileMessageToPeers(filePath: String, peerIds: List<String>)
Link copied to clipboard
abstract suspend fun sendImageMessageToPeers(imageUri: Uri, peerIds: List<String>)
abstract suspend fun sendImageMessageToPeers(imagePath: String, peerIds: List<String>)
Link copied to clipboard
abstract suspend fun sendMessageToPeers(message: String, peerIds: List<String>)
Link copied to clipboard
abstract fun setRoomUUID(uuid: String)