public class VoiceEvent extends Event implements GenericChannelModeRecipientEvent
This is a type of mode change and therefor is also dispatched in a
ModeEvent
Constructor and Description |
---|
VoiceEvent(PircBotX bot,
Channel channel,
UserHostmask userHostmask,
User user,
UserHostmask recipientHostmask,
User recipient,
boolean hasVoice) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
The channel in which the mode change took place.
|
User |
getRecipient()
The nick of the user that got 'voiced'.
|
UserHostmask |
getRecipientHostmask()
The user hostmask that got 'voiced'
|
User |
getUser()
The user that performed the mode change.
|
UserHostmask |
getUserHostmask()
The user hostmask that performed the mode change.
|
int |
hashCode() |
boolean |
hasVoice()
If the voice was given or removed.
|
boolean |
isVoice()
Deprecated.
Use the better named hasVoice method. Will be removed in
future versions
|
void |
respond(String response)
A simple abstract method that all events must implement to respond to an
event happening.
|
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public VoiceEvent(PircBotX bot, @NonNull Channel channel, @NonNull UserHostmask userHostmask, User user, @NonNull UserHostmask recipientHostmask, User recipient, boolean hasVoice)
@Deprecated public boolean isVoice()
hasVoice()
public boolean hasVoice()
public void respond(String response)
Event
respond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public Channel getChannel()
getChannel
in interface GenericChannelEvent
@Generated(value="lombok") public UserHostmask getUserHostmask()
getUserHostmask
in interface GenericUserEvent
@Nullable @Generated(value="lombok") public User getUser()
getUser
in interface GenericUserEvent
@Generated(value="lombok") public UserHostmask getRecipientHostmask()
getRecipientHostmask
in interface GenericUserModeEvent
@Nullable @Generated(value="lombok") public User getRecipient()
getRecipient
in interface GenericUserModeEvent
Copyright © 2010–2020 Leon Blakey. All rights reserved.