Record Class GenerateAuthCodeData

java.lang.Object
java.lang.Record
live.crowdcontrol.cc4j.websocket.data.GenerateAuthCodeData

public record GenerateAuthCodeData(@NotNull String appID, @Nullable List<String> scopes, @Nullable List<String> packs, @Nullable Boolean qrCode) extends Record
  • Field Details

    • ACTION

      @NotNull public static @NotNull String ACTION
  • Constructor Details

    • GenerateAuthCodeData

      public GenerateAuthCodeData(@NotNull @NotNull String appID)
    • GenerateAuthCodeData

      public GenerateAuthCodeData(@NotNull @NotNull String appID, @Nullable @Nullable List<String> scopes, @Nullable @Nullable List<String> packs, @Nullable @Nullable Boolean qrCode)
      Creates an instance of a GenerateAuthCodeData record class.
      Parameters:
      appID - the value for the appID record component
      scopes - the value for the scopes record component
      packs - the value for the packs record component
      qrCode - the value for the qrCode record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • appID

      @NotNull public @NotNull String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • scopes

      @Nullable public @Nullable List<String> scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component
    • packs

      @Nullable public @Nullable List<String> packs()
      Returns the value of the packs record component.
      Returns:
      the value of the packs record component
    • qrCode

      @Nullable public @Nullable Boolean qrCode()
      Returns the value of the qrCode record component.
      Returns:
      the value of the qrCode record component