public class WhisperEvent extends PrivateMessageEvent
Constructor and Description |
---|
WhisperEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull User sender,
@NonNull String target,
@NonNull String message)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
void |
sendReply(@NonNull String message)
Sends a reply to this message.
|
getTarget, isToClient, toStringer
getMessage
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActor
getMessage
getSource, getTag, getTag, getTags
getClient
public WhisperEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull User sender, @NonNull String target, @NonNull String message)
client
- client for which this is occurringsourceMessage
- source messagesender
- who sent ittarget
- who received itmessage
- message sentpublic void sendReply(@NonNull String message)
ReplyableEvent
sendReply
in interface ReplyableEvent
sendReply
in class PrivateMessageEvent
message
- message to send backCopyright © 2013–2021 Kitteh. All rights reserved.