Class MatrixMessage

java.lang.Object
io.meeds.chat.model.MatrixMessage

public class MatrixMessage extends Object
  • 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 id
      roomId - the room id
      type - the event type
      messageContent - the plain text body
      messageType - the message type (msgtype)
      sender - the sender's Matrix id
      mentionedUsers - the mentioned Matrix ids
      timeStamp - the origin server timestamp
      formattedContent - the HTML body, if any
      relatesToType - the relation type, if any
      inReplyTo - the replied-to event id, if any