Package io.github.ma1uta.matrix.event
Class RoomEvent<C extends EventContent>
- java.lang.Object
-
- io.github.ma1uta.matrix.event.Event<C>
-
- io.github.ma1uta.matrix.event.RoomEvent<C>
-
- Type Parameters:
C
- type of the event content.
- Direct Known Subclasses:
CallAnswer
,CallCandidates
,CallHangup
,CallInvite
,RoomEncrypted
,RoomMessage
,RoomMessageFeedback
,RoomRedaction
,StateEvent
,Sticker
public abstract class RoomEvent<C extends EventContent> extends Event<C>
Room Event.
-
-
Constructor Summary
Constructors Constructor Description RoomEvent()
-
Method Summary
Modifier and Type Method Description String
getEventId()
Long
getOriginServerTs()
String
getRoomId()
String
getSender()
Unsigned<C>
getUnsigned()
void
setEventId(String eventId)
void
setOriginServerTs(Long originServerTs)
void
setRoomId(String roomId)
void
setSender(String sender)
void
setUnsigned(Unsigned<C> unsigned)
-
Methods inherited from class io.github.ma1uta.matrix.event.Event
getContent, getType, setContent
-
-
-
-
Field Detail
-
eventId
private String eventId
Required. The globally unique event identifier.
-
roomId
private String roomId
Required. The ID of the room associated with this event.
-
sender
private String sender
Required. Contains the fully-qualified ID of the user who sent this event.
-
originServerTs
private Long originServerTs
Required. Timestamp in milliseconds on originating homeserver when this event was sent.
-
unsigned
private Unsigned<C extends EventContent> unsigned
Contains optional extra information about the event.
-
-
Method Detail
-
getEventId
public String getEventId()
-
setEventId
public void setEventId(String eventId)
-
getRoomId
public String getRoomId()
-
setRoomId
public void setRoomId(String roomId)
-
getSender
public String getSender()
-
setSender
public void setSender(String sender)
-
getOriginServerTs
public Long getOriginServerTs()
-
setOriginServerTs
public void setOriginServerTs(Long originServerTs)
-
-