InsertMessageItem

public final class InsertMessageItem

A single message item for batch insertion.

Usage Example:

channel.insertMessages(
listOf(
InsertMessageItem(
content = TextMessage("Hello"),
direction = MessageDirection.RECEIVE,
senderUserId = "user123",
sentTime = System.currentTimeMillis(),
)
)
) { result, error ->
// ...
}

Parameters

content

Message content body

direction

Message direction (default: MessageDirection.RECEIVE)

senderUserId

Sender user ID

sentTime

Sent timestamp in milliseconds (default: current time)

sentStatus

Sending status (default: SentStatus.SENT)

Constructors

Link copied to clipboard
public InsertMessageItem InsertMessageItem(MessageContent content, MessageDirection direction, String senderUserId, Long sentTime, SentStatus sentStatus)

Properties

Link copied to clipboard
private final MessageContent content
Link copied to clipboard
Link copied to clipboard
private final String senderUserId
Link copied to clipboard
private final SentStatus sentStatus
Link copied to clipboard
private final Long sentTime

Functions

Link copied to clipboard
public final MessageContent getContent()
Link copied to clipboard
Link copied to clipboard
public final String getSenderUserId()
Link copied to clipboard
public final SentStatus getSentStatus()
Link copied to clipboard
public final Long getSentTime()