public class QuitEvent extends Event implements GenericUserEvent, GenericSnapshotEvent
Constructor and Description |
---|
QuitEvent(PircBotX bot,
UserChannelDaoSnapshot userChannelDaoSnapshot,
UserHostmask userHostmask,
UserSnapshot user,
String reason) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
UserChannelDaoSnapshot |
getDaoSnapshot()
Deprecated.
|
String |
getReason()
The reason the user quit from the server.
|
UserSnapshot |
getUser()
Snapshot of the user as of before the user quit.
|
UserChannelDaoSnapshot |
getUserChannelDaoSnapshot()
Snapshot of the UserChannelDao data before the event.
|
UserHostmask |
getUserHostmask()
The source user hostmask that generated the event.
|
int |
hashCode() |
void |
respond(String response)
Deprecated.
|
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public QuitEvent(PircBotX bot, UserChannelDaoSnapshot userChannelDaoSnapshot, @NonNull UserHostmask userHostmask, UserSnapshot user, @NonNull String reason)
@Deprecated public UserChannelDaoSnapshot getDaoSnapshot()
getUserChannelDaoSnapshot()
from
GenericSnapshotEvent
getUserChannelDaoSnapshot()
,
GenericSnapshotEvent
@Deprecated public void respond(String response)
UnsupportedOperationException
since we can't respond to a user
that just quitrespond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public String getReason()
@Generated(value="lombok") public UserChannelDaoSnapshot getUserChannelDaoSnapshot()
GenericSnapshotEvent
getUserChannelDaoSnapshot
in interface GenericSnapshotEvent
Configuration.Builder.setSnapshotsEnabled(boolean)
@Generated(value="lombok") public UserHostmask getUserHostmask()
GenericUserEvent
getUserHostmask
in interface GenericUserEvent
@Generated(value="lombok") public UserSnapshot getUser()
getUser
in interface GenericUserEvent
Copyright © 2010–2020 Leon Blakey. All rights reserved.