Package io.github.ma1uta.matrix.event
Class Receipt
- java.lang.Object
-
- io.github.ma1uta.matrix.event.Event<ReceiptContent>
-
- io.github.ma1uta.matrix.event.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
-
-
Constructor Summary
Constructors Constructor Description Receipt()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
Informs the client of new receipts.- See Also:
- Constant Field Values
-
roomId
private String roomId
Required. The ID of the room associated with this event.
-
-
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 classEvent<ReceiptContent>
- Returns:
- The type of the event.
-
-