Class 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 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.
    • Constructor Detail

      • RoomCreateContent

        public RoomCreateContent()
    • 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)
      • setPredecessor

        public void setPredecessor​(PreviousRoom predecessor)