Class MatrixMessage
java.lang.Object
io.meeds.chat.model.MatrixMessage
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixMessage(String eventId, String roomId, String type, String messageContent, String messageType, String sender, List<String> mentionedUsers, long timeStamp, String formattedContent, String relatesToType, String inReplyTo) Builds a message without the edit fields, as every reader other than the room read does. -
Method Summary
-
Constructor Details
-
MatrixMessage
public MatrixMessage(String eventId, String roomId, String type, String messageContent, String messageType, String sender, List<String> mentionedUsers, long timeStamp, String formattedContent, String relatesToType, String inReplyTo) Builds a message without the edit fields, as every reader other than the room read does.- Parameters:
eventId- the event idroomId- the room idtype- the event typemessageContent- the plain text bodymessageType- the message type (msgtype)sender- the sender's Matrix idmentionedUsers- the mentioned Matrix idstimeStamp- the origin server timestampformattedContent- the HTML body, if anyrelatesToType- the relation type, if anyinReplyTo- the replied-to event id, if any
-