Class RoomCanonicalAlias


  • public class RoomCanonicalAlias
    extends StateEvent<RoomCanonicalAliasContent>
    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

      • TYPE

        public static final String TYPE
        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.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RoomCanonicalAlias

        public RoomCanonicalAlias()
    • Method Detail

      • getType

        public String getType()
        Description copied from class: Event
        Required. The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'.
        Specified by:
        getType in class Event<RoomCanonicalAliasContent>
        Returns:
        The type of the event.