public class PrivateCtcpQueryEvent extends ActorPrivateMessageEventBase<User> implements ActorMessageEvent<User>
ActorMessageEventBase.getMessage() returns the
unescaped message with the delimiter removed. Note that the reply is not
sent if the target is not the client.
See PrivateCtcpReplyEvent for received CTCP replies.
| Constructor and Description |
|---|
PrivateCtcpQueryEvent(Client client,
List<ServerMessage> originalMessages,
User sender,
String target,
String message,
String reply)
Creates the event
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getReply()
Gets the reply to be sent to the CTCP sender.
|
void |
setReply(String reply)
Sets the reply to send to the CTCP sender.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getTarget, isToClientgetMessagegetActorgetOriginalMessagesgetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetActorgetMessagegetOriginalMessagesgetClientpublic PrivateCtcpQueryEvent(@Nonnull Client client, @Nonnull List<ServerMessage> originalMessages, @Nonnull User sender, @Nonnull String target, @Nonnull String message, @Nullable String reply)
client - client for which this is occurringoriginalMessages - original messagessender - sender of the querytarget - target of the querymessage - message sentreply - reply to be sent, if any@Nonnull public Optional<String> getReply()
public void setReply(@Nullable String reply)
Client.sendCtcpReply(String, String).reply - message to send back@Nonnull protected ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ActorPrivateMessageEventBase<User>Copyright © 2013–2019 Kitteh. All rights reserved.