Class Receipt


  • public class Receipt
    extends Event<ReceiptContent>
    A map of which rooms are considered 'direct' rooms for specific users is kept in account_data in an event of type m.direct. The content of this event is an object where the keys are the user IDs and values are lists of room ID strings of the 'direct' rooms for that user ID.

    Map EVENT_ID -> 'm.read' -> USER_ID -> ts: long

    • Field Detail

      • roomId

        private String roomId
        Required. The ID of the room associated with this event.
    • Constructor Detail

      • Receipt

        public Receipt()
    • Method Detail

      • getRoomId

        public String getRoomId()
      • setRoomId

        public void setRoomId​(String roomId)
      • getType

        public String getType()
        Description copied from class: Event
        Required. The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'.
        Specified by:
        getType in class Event<ReceiptContent>
        Returns:
        The type of the event.