public abstract class TargetedUserChannelMessageEventBase extends ActorChannelMessageEventBase<User> implements ChannelTargetedEvent, MessageEvent
ActorEvent
,
ChannelEvent
,
MessageEvent
Modifier | Constructor and Description |
---|---|
protected |
TargetedUserChannelMessageEventBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull User user,
@NonNull Channel channel,
@NonNull ChannelUserMode prefix,
@NonNull String message)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull ChannelUserMode |
getPrefix()
Gets the prefix to which the message was sent.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getMessage
getChannel
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTargetedName
getChannel
getMessage
getSource, getTag, getTag, getTags
getClient
protected TargetedUserChannelMessageEventBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull User user, @NonNull Channel channel, @NonNull ChannelUserMode prefix, @NonNull String message)
client
- the clientsourceMessage
- source messageuser
- the userchannel
- the channelprefix
- the targeted prefixmessage
- the messagepublic final @NonNull ChannelUserMode getPrefix()
ChannelTargetedEvent
getPrefix
in interface ChannelTargetedEvent
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorChannelMessageEventBase<User>
Copyright © 2013–2021 Kitteh. All rights reserved.