Class RoomCanonicalAliasContent

  • All Implemented Interfaces:
    EventContent

    public class RoomCanonicalAliasContent
    extends Object
    implements EventContent
    This event is used to inform the room about which alias should be considered the canonical one. This could be for display purposes or as suggestion to users which alias to use to advertise the room.

    A room with an m.room.canonical_alias event with an absent, null, or empty alias field should be treated the same as a room with no m.room.canonical_alias event.

    • Field Detail

      • alias

        private String alias
        Required. The canonical alias.
    • Constructor Detail

      • RoomCanonicalAliasContent

        public RoomCanonicalAliasContent()
    • Method Detail

      • getAlias

        public String getAlias()
      • setAlias

        public void setAlias​(String alias)