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