public class TopicEvent extends Event implements GenericChannelEvent
Constructor and Description |
---|
TopicEvent(PircBotX bot,
Channel channel,
String oldTopic,
String topic,
UserHostmask user,
long date,
boolean changed) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
The channel that the topic belongs to.
|
long |
getDate()
When the topic was set (milliseconds since the epoch).
|
String |
getOldTopic()
If known, the old topic of the channel before it was changed.
|
String |
getTopic()
The topic for the channel.
|
UserHostmask |
getUser()
The user that set the topic.
|
int |
hashCode() |
boolean |
isChanged()
True if the topic has just been changed, false if the topic was already
there.
|
void |
respond(String response)
Respond with a channel message in
user: message format to
the user that set the message |
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public TopicEvent(PircBotX bot, @NonNull Channel channel, String oldTopic, @NonNull String topic, @NonNull UserHostmask user, long date, boolean changed)
public void respond(String response)
user: message
format to
the user that set the messagerespond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public String getOldTopic()
@Generated(value="lombok") public String getTopic()
@Generated(value="lombok") public UserHostmask getUser()
@Generated(value="lombok") public boolean isChanged()
@Generated(value="lombok") public long getDate()
@Generated(value="lombok") public Channel getChannel()
getChannel
in interface GenericChannelEvent
Copyright © 2010–2020 Leon Blakey. All rights reserved.