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)
Deprecated.
Use new constructor
|
ChannelTopicEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull Channel channel,
Channel.Topic oldTopic,
Channel.Topic newTopic,
boolean updated)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
Channel.Topic |
getNewTopic() |
Channel.Topic |
getOldTopic() |
Channel.Topic |
getTopic()
Deprecated.
Use
getNewTopic() and getOldTopic() |
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, Channel.Topic oldTopic, Channel.Topic newTopic, boolean updated)
client
- client for which this is occurringsourceMessage
- source messagechannel
- channel the topic is aboutoldTopic
- old topicnewTopic
- new topicupdated
- if this is a new change@Deprecated 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 change@Deprecated public Channel.Topic getTopic()
getNewTopic()
and getOldTopic()
public Channel.Topic getNewTopic()
public Channel.Topic getOldTopic()
public boolean isNew()
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ChannelEventBase
Copyright © 2013–2021 Kitteh. All rights reserved.