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(Client client,
List<ServerMessage> originalMessages,
User user,
String account)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getAccount()
Gets the account, if signed into one, or empty if signed out.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getActor
getOriginalMessages
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOriginalMessages
getClient
public UserAccountStatusEvent(@Nonnull Client client, @Nonnull List<ServerMessage> originalMessages, @Nonnull User user, @Nullable String account)
client
- client for which this is occurringoriginalMessages
- original messagesuser
- useraccount
- account the user is signed into@Nonnull public Optional<String> getAccount()
@Nonnull protected ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorEventBase<User>
Copyright © 2013–2019 Kitteh. All rights reserved.