Record Class ApplicationAuthCodePayload
java.lang.Object
java.lang.Record
live.crowdcontrol.cc4j.websocket.payload.ApplicationAuthCodePayload
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationAuthCodePayload(@NotNull String code, @NotNull String url, @Nullable String qrCode) Creates an instance of aApplicationAuthCodePayloadrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringqrCode()Returns the value of theqrCoderecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringurl()Returns the value of theurlrecord component.
-
Constructor Details
-
ApplicationAuthCodePayload
public ApplicationAuthCodePayload(@NotNull @NotNull String code, @NotNull @NotNull String url, @Nullable @Nullable String qrCode) Creates an instance of aApplicationAuthCodePayloadrecord class.- Parameters:
code- the value for thecoderecord componenturl- the value for theurlrecord componentqrCode- the value for theqrCoderecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
qrCode
Returns the value of theqrCoderecord component.- Returns:
- the value of the
qrCoderecord component
-