Record Class ChatRoomMention
java.lang.Object
java.lang.Record
io.meeds.chat.model.ChatRoomMention
- Record Components:
roomKind- the kind of room,ChatRoomKind.SPACEtodayeventId- the Matrix event id of the messageroomId- the Matrix room id, as the push named itspaceId- the id of the room's space, null for a direct messagerecipientLogin- the login of the mentioned workersenderLogin- the login of the message's sender, null when the sender has no platform accountsenderMatrixId- the Matrix id of the message's senderbody- the message's plain-text bodymentionedMatrixIds- the Matrix ids the message'sm.mentionsnamesoriginServerTs- the message'sorigin_server_ts
public record ChatRoomMention(ChatRoomKind roomKind, String eventId, String roomId, Long spaceId, String recipientLogin, String senderLogin, String senderMatrixId, String body, List<String> mentionedMatrixIds, long originServerTs)
extends Record
A mention of a digital worker in a chat room, the data of the
matrix.agent.mentioned platform event (whose source is the room).
Every field is read back from the event by the administrator account, never
taken from the push, except the recipient, which the pusher's key names.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thementionedMatrixIdsrecord component.longReturns the value of theoriginServerTsrecord component.Returns the value of therecipientLoginrecord component.roomId()Returns the value of theroomIdrecord component.roomKind()Returns the value of theroomKindrecord component.Returns the value of thesenderLoginrecord component.Returns the value of thesenderMatrixIdrecord component.spaceId()Returns the value of thespaceIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatRoomMention
public ChatRoomMention(ChatRoomKind roomKind, String eventId, String roomId, Long spaceId, String recipientLogin, String senderLogin, String senderMatrixId, String body, List<String> mentionedMatrixIds, long originServerTs) Creates an instance of aChatRoomMentionrecord class.- Parameters:
roomKind- the value for theroomKindrecord componenteventId- the value for theeventIdrecord componentroomId- the value for theroomIdrecord componentspaceId- the value for thespaceIdrecord componentrecipientLogin- the value for therecipientLoginrecord componentsenderLogin- the value for thesenderLoginrecord componentsenderMatrixId- the value for thesenderMatrixIdrecord componentbody- the value for thebodyrecord componentmentionedMatrixIds- the value for thementionedMatrixIdsrecord componentoriginServerTs- the value for theoriginServerTsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
roomKind
-
eventId
-
roomId
-
spaceId
-
recipientLogin
Returns the value of therecipientLoginrecord component.- Returns:
- the value of the
recipientLoginrecord component
-
senderLogin
Returns the value of thesenderLoginrecord component.- Returns:
- the value of the
senderLoginrecord component
-
senderMatrixId
Returns the value of thesenderMatrixIdrecord component.- Returns:
- the value of the
senderMatrixIdrecord component
-
body
-
mentionedMatrixIds
Returns the value of thementionedMatrixIdsrecord component.- Returns:
- the value of the
mentionedMatrixIdsrecord component
-
originServerTs
public long originServerTs()Returns the value of theoriginServerTsrecord component.- Returns:
- the value of the
originServerTsrecord component
-