public class UserAwayMessageEvent extends ActorEventBase<User>
User
has changed away status, informed via AWAY message. Note
that two events may fire in a row while the user remains away, just with
a changed message.Constructor and Description |
---|
UserAwayMessageEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull User user,
@Nullable String message)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Optional<String> |
getAwayMessage()
Gets the away message.
|
boolean |
isAway()
Gets if the user is away.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClient
getTag, getTag, getTags
public UserAwayMessageEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull User user, @Nullable String message)
client
- client for which this is occurringsourceMessage
- source messageuser
- usermessage
- message the user leftpublic boolean isAway()
getAwayMessage()
is not
empty.public @NonNull Optional<String> getAwayMessage()
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorEventBase<User>
Copyright © 2013–2021 Kitteh. All rights reserved.