Class CCEffectReport
java.lang.Object
live.crowdcontrol.cc4j.websocket.data.CCEffectReport
Instructs the server to adjust the visibility or usability of an effect in the menu.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull UUIDprotected final @NotNull IdentifierTypeprotected final longprotected final @NotNull ReportStatus -
Constructor Summary
ConstructorsConstructorDescriptionCCEffectReport(@NotNull IdentifierType identifierType, @NotNull ReportStatus status, @NotNull String @NotNull ... ids) Creates a report.CCEffectReport(@NotNull IdentifierType identifierType, @NotNull ReportStatus status, @NotNull List<@NotNull String> ids) Creates a report.CCEffectReport(@NotNull ReportStatus status, @NotNull String @NotNull ... ids) Creates a report for effects.CCEffectReport(@NotNull ReportStatus status, @NotNull List<@NotNull String> ids) Creates a report for effects. -
Method Summary
Modifier and TypeMethodDescription@NotNull UUIDgetId()Gets the randomly generated ID of the argument.@NotNull IdentifierTypeGets the type of objects being reported on.getIds()Gets the list of IDs being reported on.@NotNull ReportStatusThe status value of the report.longGets the timestamp in seconds since Unix epoch that this result was generated.
-
Field Details
-
id
-
stamp
protected final long stamp -
identifierType
-
ids
-
status
-
-
Constructor Details
-
CCEffectReport
public CCEffectReport(@NotNull @NotNull IdentifierType identifierType, @NotNull @NotNull ReportStatus status, @NotNull @NotNull List<@NotNull String> ids) Creates a report.- Parameters:
identifierType- the type of objects being reported onstatus- the new status of the objectsids- the objects being reported on
-
CCEffectReport
public CCEffectReport(@NotNull @NotNull IdentifierType identifierType, @NotNull @NotNull ReportStatus status, @NotNull @NotNull String @NotNull ... ids) Creates a report.- Parameters:
identifierType- the type of objects being reported onstatus- the new status of the objectsids- the objects being reported on
-
CCEffectReport
public CCEffectReport(@NotNull @NotNull ReportStatus status, @NotNull @NotNull List<@NotNull String> ids) Creates a report for effects.- Parameters:
status- the new status of the objectsids- the objects being reported on
-
CCEffectReport
public CCEffectReport(@NotNull @NotNull ReportStatus status, @NotNull @NotNull String @NotNull ... ids) Creates a report for effects.- Parameters:
status- the new status of the objectsids- the objects being reported on
-
-
Method Details
-
getId
Gets the randomly generated ID of the argument.- Returns:
- arg ID
-
getTimestamp
public long getTimestamp()Gets the timestamp in seconds since Unix epoch that this result was generated.- Returns:
- unix epoch seconds timestamp
-
getIdentifierType
Gets the type of objects being reported on.- Returns:
- identifier type
-
getIds
Gets the list of IDs being reported on.- Returns:
- list of ids
-
getStatus
The status value of the report.- Returns:
- result status
-