public final class OccupantEvent
extends java.util.EventObject
An event which is triggered by an occupant in a chat room. Typical events are “joins” and “leaves”, as well as “bans” or “kicks”.
Modifier and Type | Class and Description |
---|---|
static class |
OccupantEvent.Type
The type of the occupant event.
|
Modifier and Type | Method and Description |
---|---|
Actor |
getActor()
Gets the actor in case the occupant was kicked or banned from the room.
|
Jid |
getAlternativeRoom()
Gets the alternative room address in case the old room has been destroyed.
|
Occupant |
getOccupant()
Gets the occupant.
|
java.lang.String |
getReason()
Gets the reason for kicking or banning an occupant or for destroying the room.
|
OccupantEvent.Type |
getType()
Gets the type of this event.
|
public Occupant getOccupant()
Gets the occupant.
public OccupantEvent.Type getType()
Gets the type of this event.
public Actor getActor()
Gets the actor in case the occupant was kicked or banned from the room.
public java.lang.String getReason()
Gets the reason for kicking or banning an occupant or for destroying the room.
public Jid getAlternativeRoom()
Gets the alternative room address in case the old room has been destroyed.
OccupantEvent.Type.ROOM_DESTROYED
Copyright © 2014–2019 XMPP.rocks. All rights reserved.