Dm
class Dm(val client: Client, libXMTPGroup: FfiConversation, ffiLastMessage: FfiMessage? = null, ffiIsCommitLogForked: Boolean? = null)
Constructors
Link copied to clipboard
constructor(client: Client, libXMTPGroup: FfiConversation, ffiLastMessage: FfiMessage? = null, ffiIsCommitLogForked: Boolean? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun countMessages(beforeNs: Long? = null, afterNs: Long? = null, deliveryStatus: DecodedMessage.MessageDeliveryStatus = MessageDeliveryStatus.ALL, excludeContentTypes: List<FfiContentType>? = null, excludeSenderInboxIds: List<String>? = null, insertedAfterNs: Long? = null, insertedBeforeNs: Long? = null): Long
Link copied to clipboard
Link copied to clipboard
Delete a message by its ID.
Link copied to clipboard
Link copied to clipboard
fun <T> encodeContent(content: T, options: SendOptions?): Pair<EncodedContent, MessageVisibilityOptions>
Link copied to clipboard
suspend fun enrichedMessages(limit: Int? = null, beforeNs: Long? = null, afterNs: Long? = null, direction: DecodedMessage.SortDirection = SortDirection.DESCENDING, deliveryStatus: DecodedMessage.MessageDeliveryStatus = MessageDeliveryStatus.ALL, excludeContentTypes: List<FfiContentType>? = null, excludeSenderInboxIds: List<String>? = null, insertedAfterNs: Long? = null, insertedBeforeNs: Long? = null, sortBy: DecodedMessage.SortBy = SortBy.SENT_TIME): List<DecodedMessageV2>
Get messages with enriched metadata automatically included.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun messages(limit: Int? = null, beforeNs: Long? = null, afterNs: Long? = null, direction: DecodedMessage.SortDirection = SortDirection.DESCENDING, deliveryStatus: DecodedMessage.MessageDeliveryStatus = MessageDeliveryStatus.ALL, excludeContentTypes: List<FfiContentType>? = null, excludeSenderInboxIds: List<String>? = null, insertedAfterNs: Long? = null, insertedBeforeNs: Long? = null, sortBy: DecodedMessage.SortBy = SortBy.SENT_TIME): List<DecodedMessage>
Get the raw list of messages from this DM conversation.
Link copied to clipboard
suspend fun messagesWithReactions(limit: Int? = null, beforeNs: Long? = null, afterNs: Long? = null, direction: DecodedMessage.SortDirection = SortDirection.DESCENDING, deliveryStatus: DecodedMessage.MessageDeliveryStatus = MessageDeliveryStatus.ALL, excludeContentTypes: List<FfiContentType>? = null, excludeSenderInboxIds: List<String>? = null, insertedAfterNs: Long? = null, insertedBeforeNs: Long? = null, sortBy: DecodedMessage.SortBy = SortBy.SENT_TIME): List<DecodedMessage>
Link copied to clipboard
Link copied to clipboard
suspend fun <T> prepareMessage(content: T, options: SendOptions? = null, noSend: Boolean = false): String
suspend fun prepareMessage(encodedContent: EncodedContent, opts: MessageVisibilityOptions = MessageVisibilityOptions(shouldPush = true), noSend: Boolean = false): String
Prepares a message for sending.
Link copied to clipboard
Link copied to clipboard
Publishes a message that was prepared with noSend = true.
Link copied to clipboard
Link copied to clipboard
suspend fun send(encodedContent: EncodedContent, opts: MessageVisibilityOptions = MessageVisibilityOptions(shouldPush = true)): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun updateDisappearingMessageSettings(disappearingMessageSettings: DisappearingMessageSettings?)