Class CCTimedEffectResponse
java.lang.Object
live.crowdcontrol.cc4j.websocket.data.CCEffectResponse
live.crowdcontrol.cc4j.websocket.data.CCTimedEffectResponse
Informs the server of whether a purchased timed effect was executed successfully or not.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCCTimedEffectResponse(@NotNull UUID requestID, @NotNull ResponseStatus status, long timeRemaining) Creates a response.CCTimedEffectResponse(@NotNull UUID requestID, @NotNull ResponseStatus status, @NotNull String message, long timeRemaining) Creates a response. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the time remaining on the effect in milliseconds.Methods inherited from class live.crowdcontrol.cc4j.websocket.data.CCEffectResponse
getId, getMessage, getRequestId, getStatus, getTimestamp
-
Field Details
-
timeRemaining
protected long timeRemaining
-
-
Constructor Details
-
CCTimedEffectResponse
public CCTimedEffectResponse(@NotNull @NotNull UUID requestID, @NotNull @NotNull ResponseStatus status, @NotNull @NotNull String message, long timeRemaining) Creates a response.- Parameters:
requestID- the ID of the requeststatus- the status of the requestmessage- the reasoning to display to the viewertimeRemaining- the time remaining on the effect in milliseconds
-
CCTimedEffectResponse
public CCTimedEffectResponse(@NotNull @NotNull UUID requestID, @NotNull @NotNull ResponseStatus status, long timeRemaining) Creates a response.- Parameters:
requestID- the ID of the requeststatus- the status of the requesttimeRemaining- the time remaining on the effect in milliseconds
-
-
Method Details
-
getTimeRemaining
public long getTimeRemaining()Gets the time remaining on the effect in milliseconds.- Returns:
- milliseconds
-