Package io.github.ma1uta.matrix.event
Class Event<C extends EventContent>
- java.lang.Object
-
- io.github.ma1uta.matrix.event.Event<C>
-
- Type Parameters:
C
- type of the event content.
- Direct Known Subclasses:
Direct
,Dummy
,ForwardedRoomKey
,FullyRead
,IgnoredUserList
,KeyVerificationAccept
,KeyVerificationCancel
,KeyVerificationKey
,KeyVerificationMac
,KeyVerificationRequest
,KeyVerificationStart
,Presence
,PushRules
,RawEvent
,Receipt
,RoomEvent
,RoomKey
,RoomKeyRequest
,Tag
,Typing
public abstract class Event<C extends EventContent> extends Object
Event.
-
-
Constructor Summary
Constructors Constructor Description Event()
-
-
-
Field Detail
-
content
private C extends EventContent content
The fields in this object will vary depending on the type of event. When interacting with the REST API, this is the HTTP body.
-
-
Method Detail
-
getContent
public C getContent()
-
setContent
public void setContent(C content)
-
getType
public abstract String getType()
Required. The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'.- Returns:
- The type of the event.
-
-