Conversation

sealed class Conversation

Inheritors

Types

Link copied to clipboard
data class Dm(val dm: Dm) : Conversation
Link copied to clipboard
data class Group(val group: Group) : Conversation
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun lastMessage(): Message?
Link copied to clipboard
suspend fun members(): List<Member>
Link copied to clipboard
suspend fun messages(limit: Int? = null, beforeNs: Long? = null, afterNs: Long? = null, direction: Message.SortDirection = Message.SortDirection.DESCENDING, deliveryStatus: Message.MessageDeliveryStatus = Message.MessageDeliveryStatus.ALL): List<Message>
Link copied to clipboard
fun prepareMessage(encodedContent: EncodedContent): String
fun <T> prepareMessage(content: T, options: SendOptions? = null): String
Link copied to clipboard
suspend fun processMessage(messageBytes: ByteArray): Message?
Link copied to clipboard
suspend fun publishMessages()
Link copied to clipboard
suspend fun send(text: String): String
suspend fun send(encodedContent: EncodedContent): String
suspend fun <T> send(content: T, options: SendOptions? = null): String
Link copied to clipboard
fun streamMessages(): Flow<Message>
Link copied to clipboard
suspend fun sync()
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard