public abstract class CapabilityNegotiationResponseEventWithRequestBase extends CapabilityNegotiationResponseEventBase implements CapabilityNegotiationRequestEvent
Modifier | Constructor and Description |
---|---|
protected |
CapabilityNegotiationResponseEventWithRequestBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
boolean negotiating)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
void |
addRequest(@NonNull String capability)
Add a capability to be requested following this event.
|
@NonNull List<String> |
getRequests()
Gets the capabilities to be requested.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
isEndingNegotiation, isNegotiating, setEndingNegotiation
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEndingNegotiation, isNegotiating, setEndingNegotiation
getClient
getTag, getTag, getTags
protected CapabilityNegotiationResponseEventWithRequestBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, boolean negotiating)
client
- the clientsourceMessage
- source messagenegotiating
- if we are negotiating right nowpublic void addRequest(@NonNull String capability)
CapabilityNegotiationRequestEvent
addRequest
in interface CapabilityNegotiationRequestEvent
capability
- capability to be requestedpublic @NonNull List<String> getRequests()
CapabilityNegotiationRequestEvent
getRequests
in interface CapabilityNegotiationRequestEvent
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class CapabilityNegotiationResponseEventBase
Copyright © 2013–2021 Kitteh. All rights reserved.