public class UserAccountStatusEvent extends ActorEventBase<User>
User
has changed account status, either signing into one or
signing out of one. Fired if the server supports account-notify.Constructor and Description |
---|
UserAccountStatusEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull User user,
@Nullable String account)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Optional<String> |
getAccount()
Gets the account, if signed into one, or empty if signed out.
|
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 UserAccountStatusEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull User user, @Nullable String account)
client
- client for which this is occurringsourceMessage
- source messageuser
- useraccount
- account the user is signed intopublic @NonNull Optional<String> getAccount()
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorEventBase<User>
Copyright © 2013–2021 Kitteh. All rights reserved.