public class ChannelTopicEvent extends ChannelEventBase
Either the topic has changed or we requested to know what the topic was.
| Constructor and Description |
|---|
ChannelTopicEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull 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 @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getChannelgetSourcegetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientgetTag, getTag, getTagspublic ChannelTopicEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull Channel channel, boolean updated)
client - client for which this is occurringsourceMessage - source messagechannel - channel the topic is aboutupdated - if this is a new changeChannel.getTopic()public Channel.Topic getTopic()
Channel.getTopic()public boolean isNew()
protected @NonNull ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ChannelEventBaseCopyright © 2013–2019 Kitteh. All rights reserved.