public class PartEvent extends Event implements GenericChannelUserEvent, GenericSnapshotEvent
Constructor and Description |
---|
PartEvent(PircBotX bot,
UserChannelDaoSnapshot daoSnapshot,
ChannelSnapshot channel,
String channelName,
UserHostmask userHostmask,
UserSnapshot user,
String reason) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ChannelSnapshot |
getChannel()
Snapshot of the channel as of before the user parted.
|
String |
getChannelName()
Name of channel the user parted from.
|
UserChannelDaoSnapshot |
getDaoSnapshot()
Deprecated.
|
String |
getReason()
The reason for leaving the channel.
|
UserSnapshot |
getUser()
Snapshot of the user as of before the user parted.
|
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)
Respond by sending a message to the channel
|
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public PartEvent(PircBotX bot, UserChannelDaoSnapshot daoSnapshot, ChannelSnapshot channel, @NonNull String channelName, @NonNull UserHostmask userHostmask, UserSnapshot user, @NonNull String reason)
@Deprecated public UserChannelDaoSnapshot getDaoSnapshot()
getUserChannelDaoSnapshot()
from
GenericSnapshotEvent
getUserChannelDaoSnapshot()
,
GenericSnapshotEvent
public void respond(String response)
respond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public String getChannelName()
@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 ChannelSnapshot getChannel()
getChannel
in interface GenericChannelEvent
@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.