Class RoomCreateContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomCreateContent
-
- All Implemented Interfaces:
EventContent
public class RoomCreateContent extends Object implements EventContent
This is the first event in a room and cannot be changed. It acts as the root of all other events.
-
-
Field Summary
Fields Modifier and Type Field Description private String
creator
Required.private Boolean
federate
Whether users on other servers can join this room.private PreviousRoom
predecessor
A reference to the room this room replaces, if the previous room was upgraded.private String
roomVersion
The version of the room.
-
Constructor Summary
Constructors Constructor Description RoomCreateContent()
-
Method Summary
Modifier and Type Method Description String
getCreator()
Boolean
getFederate()
PreviousRoom
getPredecessor()
String
getRoomVersion()
void
setCreator(String creator)
void
setFederate(Boolean federate)
void
setPredecessor(PreviousRoom predecessor)
void
setRoomVersion(String roomVersion)
-
-
-
Field Detail
-
creator
private String creator
Required. The user_id of the room creator. This is set by the homeserver.
-
federate
private Boolean federate
Whether users on other servers can join this room. Defaults to ``true`` if key does not exist.
-
roomVersion
private String roomVersion
The version of the room. Defaults to "1" if the key does not exist.
-
predecessor
private PreviousRoom predecessor
A reference to the room this room replaces, if the previous room was upgraded.
-
-
Method Detail
-
getCreator
public String getCreator()
-
setCreator
public void setCreator(String creator)
-
getFederate
public Boolean getFederate()
-
setFederate
public void setFederate(Boolean federate)
-
getRoomVersion
public String getRoomVersion()
-
setRoomVersion
public void setRoomVersion(String roomVersion)
-
getPredecessor
public PreviousRoom getPredecessor()
-
setPredecessor
public void setPredecessor(PreviousRoom predecessor)
-
-