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. |
getActorgetSourcegetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientgetTag, getTag, getTagspublic 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()
ClientEventBaseToStringer for the command.toStringer in class ActorEventBase<User>Copyright © 2013–2021 Kitteh. All rights reserved.