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. |
getChannel
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClient
getTag, getTag, getTags
public 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()
ClientEventBase
ToStringer
for the command.toStringer
in class ChannelEventBase
Copyright © 2013–2019 Kitteh. All rights reserved.