Class OccupantEvent

    • Method Detail

      • getOccupant

        public Occupant getOccupant()
        Gets the occupant.
        Returns:
        The occupant.
      • getType

        public OccupantEvent.Type getType()
        Gets the type of this event.
        Returns:
        The type.
      • getActor

        public Actor getActor()
        Gets the actor in case the occupant was kicked or banned from the room.
        Returns:
        The actor or null.
      • getReason

        public String getReason()
        Gets the reason for kicking or banning an occupant or for destroying the room.
        Returns:
        The reason for kicking or banning an occupant or for destroying the room.
      • getAlternativeRoom

        public Jid getAlternativeRoom()
        Gets the alternative room address in case the old room has been destroyed.
        Returns:
        The alternative room address.
        See Also:
        OccupantEvent.Type.ROOM_DESTROYED