Class CCEffectReport

java.lang.Object
live.crowdcontrol.cc4j.websocket.data.CCEffectReport

public class CCEffectReport extends Object
Instructs the server to adjust the visibility or usability of an effect in the menu.
  • Field Details

    • id

      @NotNull protected final @NotNull UUID id
    • stamp

      protected final long stamp
    • identifierType

      @NotNull protected final @NotNull IdentifierType identifierType
    • ids

      @NotNull protected final @NotNull List<@NotNull String> ids
    • status

      @NotNull protected final @NotNull ReportStatus 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 on
      status - the new status of the objects
      ids - 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 on
      status - the new status of the objects
      ids - 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 objects
      ids - 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 objects
      ids - the objects being reported on
  • Method Details

    • getId

      @NotNull public @NotNull UUID 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

      @NotNull public @NotNull IdentifierType getIdentifierType()
      Gets the type of objects being reported on.
      Returns:
      identifier type
    • getIds

      @NotNull public @NotNull List<@NotNull String> getIds()
      Gets the list of IDs being reported on.
      Returns:
      list of ids
    • getStatus

      @NotNull public @NotNull ReportStatus getStatus()
      The status value of the report.
      Returns:
      result status