public class ChannelTopicEvent extends ChannelEventBase
Either the topic has changed or we requested to know what the topic was.
| Constructor and Description |
|---|
ChannelTopicEvent(Client client,
List<ServerMessage> originalMessages,
Channel channel,
boolean updated)
Creates the event.
|
| Modifier and Type | Method and Description |
|---|---|
Channel.Topic |
getTopic()
Gets the channel's topic.
|
boolean |
isNew()
Gets if this is a new topic update, or just the server informing us of
a change from the past.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getChannelgetOriginalMessagesgetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOriginalMessagesgetClientpublic ChannelTopicEvent(@Nonnull Client client, @Nonnull List<ServerMessage> originalMessages, @Nonnull Channel channel, boolean updated)
client - client for which this is occurringoriginalMessages - original messageschannel - channel the topic is aboutupdated - if this is a new changeChannel.getTopic()@Nonnull public Channel.Topic getTopic()
Channel.getTopic()public boolean isNew()
@Nonnull protected ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ChannelEventBaseCopyright © 2013–2019 Kitteh. All rights reserved.