public class CapabilityRequestCommand extends Command<CapabilityRequestCommand>
Command.Tags
Constructor and Description |
---|
CapabilityRequestCommand(@NonNull Client client)
Constructs the CAP REQ command.
|
Modifier and Type | Method and Description |
---|---|
@NonNull CapabilityRequestCommand |
disable(@NonNull String capability)
Adds a capability identifier to request disabling.
|
@NonNull CapabilityRequestCommand |
enable(@NonNull String capability)
Adds a capability identifier to request enabling.
|
void |
execute()
Executes the command.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getClient, sendCommandLine, sendCommandLine, tags, toString
public CapabilityRequestCommand(@NonNull Client client)
client
- the clientIllegalArgumentException
- if client is nullpublic @NonNull CapabilityRequestCommand enable(@NonNull String capability)
capability
- capability requestedIllegalArgumentException
- if capability is nullCapabilityManager.getCapabilities()
,
CapabilityManager.getSupportedCapabilities()
public @NonNull CapabilityRequestCommand disable(@NonNull String capability)
capability
- capability requestedIllegalArgumentException
- if capability is nullCapabilityManager.getCapabilities()
public void execute()
Command
execute
in class Command<CapabilityRequestCommand>
protected @NonNull ToStringer toStringer()
Command
ToStringer
for the command.toStringer
in class Command<CapabilityRequestCommand>
Copyright © 2013–2021 Kitteh. All rights reserved.