public class AwayCommand extends Command
Constructor and Description |
---|
AwayCommand(Client client)
Constructs the command.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the command.
|
AwayCommand |
message(String message)
Sets the away message for the command.
|
AwayCommand |
messageRemove()
Removes the away message, meaning the command will set the Client as
not away.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
public AwayCommand(@Nonnull Client client)
client
- the clientIllegalArgumentException
- if client is null@Nonnull public AwayCommand message(@Nullable String message)
message
- away message or null to set as not awayIllegalArgumentException
- for invalid message@Nonnull public AwayCommand messageRemove()
public void execute()
Command
@Nonnull protected ToStringer toStringer()
Command
ToStringer
for the command.toStringer
in class Command
Copyright © 2013–2019 Kitteh. All rights reserved.