-
@Serializable() public final class MessageOne transcript line / message. Mirrors the Rust
Messageshape.For outbound sends the SDK fires
MessageAddedwith a provisionalMessage(id = "", localId = <uuid>, status = SENDING, ...)before the wire round-trip. The server-issuedidlands on the follow-upMessageUpdated. The stable lookup key during the sending phase islocalId; once delivered, bothidandlocalIdare populated.
-
-
Field Summary
Fields Modifier and Type Field Description private final MessageRoleroleprivate final Stringidprivate final StringlocalIdprivate final Stringtextprivate final Stringhtmlprivate final Stringtimestampprivate final StringuserIdprivate final StringuserNameprivate final List<Attachment>attachmentsprivate final StringerrorTextprivate final MessageStatusstatusprivate final MessageStatestate
-
Constructor Summary
Constructors Constructor Description Message(MessageRole role, String id, String localId, String text, String html, String timestamp, String userId, String userName, List<Attachment> attachments, String errorText, MessageStatus status, MessageState state)
-
Method Summary
Modifier and Type Method Description final MessageRolegetRole()final StringgetId()final StringgetLocalId()SDK-issued temporary id for outbound messages awaiting server confirmation. final StringgetText()final StringgetHtml()final StringgetTimestamp()final StringgetUserId()final StringgetUserName()final List<Attachment>getAttachments()final StringgetErrorText()final MessageStatusgetStatus()final MessageStategetState()-
-
Constructor Detail
-
Message
Message(MessageRole role, String id, String localId, String text, String html, String timestamp, String userId, String userName, List<Attachment> attachments, String errorText, MessageStatus status, MessageState state)
-
-
Method Detail
-
getRole
final MessageRole getRole()
-
getLocalId
final String getLocalId()
SDK-issued temporary id for outbound messages awaiting server confirmation. Set on the provisional
MessageAddedpayload so the consumer can locate the row whenMessageUpdatedarrives.nullfor inbound messages or any message originating on the server.
-
getTimestamp
final String getTimestamp()
-
getUserName
final String getUserName()
-
getAttachments
final List<Attachment> getAttachments()
-
getErrorText
final String getErrorText()
-
getStatus
final MessageStatus getStatus()
-
getState
final MessageState getState()
-
-
-
-