public class CapabilitiesNewSupportedEvent extends CapabilityNegotiationResponseEventWithRequestBase
CapabilityManager
,
CapabilityRequestCommand
Constructor and Description |
---|
CapabilitiesNewSupportedEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
boolean negotiating,
@NonNull List<CapabilityState> newCapabilities)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull List<CapabilityState> |
getNewCapabilities()
Gets a list of capabilities the server now supports.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
addRequest, getRequests
isEndingNegotiation, isNegotiating, setEndingNegotiation
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEndingNegotiation, isNegotiating, setEndingNegotiation
getClient
getTag, getTag, getTags
public CapabilitiesNewSupportedEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, boolean negotiating, @NonNull List<CapabilityState> newCapabilities)
client
- the clientsourceMessage
- source messagenegotiating
- if we are negotiating right nownewCapabilities
- supported capabilitiespublic @NonNull List<CapabilityState> getNewCapabilities()
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class CapabilityNegotiationResponseEventWithRequestBase
Copyright © 2013–2021 Kitteh. All rights reserved.