Package io.github.ma1uta.matrix.event
Class StateEvent<C extends EventContent>
- java.lang.Object
-
- io.github.ma1uta.matrix.event.Event<C>
-
- io.github.ma1uta.matrix.event.RoomEvent<C>
-
- io.github.ma1uta.matrix.event.StateEvent<C>
-
- Type Parameters:
C- type of the event content.
- Direct Known Subclasses:
RoomAliases,RoomAvatar,RoomCanonicalAlias,RoomCreate,RoomEncryption,RoomGuestAccess,RoomHistoryVisibility,RoomJoinRules,RoomMember,RoomName,RoomPinned,RoomPowerLevels,RoomServerAcl,RoomThirdPartyInvite,RoomTombstone,RoomTopic
public abstract class StateEvent<C extends EventContent> extends RoomEvent<C>
Event.
-
-
Field Summary
Fields Modifier and Type Field Description private CprevContentOptional.private StringstateKeyRequired.
-
Constructor Summary
Constructors Constructor Description StateEvent()
-
Method Summary
Modifier and Type Method Description CgetPrevContent()StringgetStateKey()voidsetPrevContent(C prevContent)voidsetStateKey(String stateKey)-
Methods inherited from class io.github.ma1uta.matrix.event.RoomEvent
getEventId, getOriginServerTs, getRoomId, getSender, getUnsigned, setEventId, setOriginServerTs, setRoomId, setSender, setUnsigned
-
Methods inherited from class io.github.ma1uta.matrix.event.Event
getContent, getType, setContent
-
-
-
-
Field Detail
-
prevContent
private C extends EventContent prevContent
Optional. The previous content for this event. If there is no previous content, this key will be missing.
-
stateKey
private String stateKey
Required. A unique key which defines the overwriting semantics for this piece of room state. This value is often a zero-length string. The presence of this key makes this event a State Event. The key MUST NOT start with '_'.
-
-