Record Class OAuthClient.DeviceAuthResponse
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.auth.oauth.OAuthClient.DeviceAuthResponse
- Enclosing class:
OAuthClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedeviceCoderecord component.private final intThe field for theexpiresInrecord component.private final intThe field for theintervalrecord component.private final StringThe field for theuserCoderecord component.private final StringThe field for theverificationUrirecord component.private final StringThe field for theverificationUriCompleterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceAuthResponse(String deviceCode, String userCode, String verificationUri, String verificationUriComplete, int expiresIn, int interval) Creates an instance of aDeviceAuthResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeviceCoderecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpiresInrecord component.final inthashCode()Returns a hash code value for this object.intinterval()Returns the value of theintervalrecord component.final StringtoString()Returns a string representation of this record class.userCode()Returns the value of theuserCoderecord component.Returns the value of theverificationUrirecord component.Returns the value of theverificationUriCompleterecord component.
-
Field Details
-
deviceCode
The field for thedeviceCoderecord component. -
userCode
The field for theuserCoderecord component. -
verificationUri
The field for theverificationUrirecord component. -
verificationUriComplete
The field for theverificationUriCompleterecord component. -
expiresIn
private final int expiresInThe field for theexpiresInrecord component. -
interval
private final int intervalThe field for theintervalrecord component.
-
-
Constructor Details
-
DeviceAuthResponse
public DeviceAuthResponse(String deviceCode, String userCode, String verificationUri, String verificationUriComplete, int expiresIn, int interval) Creates an instance of aDeviceAuthResponserecord class.- Parameters:
deviceCode- the value for thedeviceCoderecord componentuserCode- the value for theuserCoderecord componentverificationUri- the value for theverificationUrirecord componentverificationUriComplete- the value for theverificationUriCompleterecord componentexpiresIn- the value for theexpiresInrecord componentinterval- the value for theintervalrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
deviceCode
Returns the value of thedeviceCoderecord component.- Returns:
- the value of the
deviceCoderecord component
-
userCode
Returns the value of theuserCoderecord component.- Returns:
- the value of the
userCoderecord component
-
verificationUri
Returns the value of theverificationUrirecord component.- Returns:
- the value of the
verificationUrirecord component
-
verificationUriComplete
Returns the value of theverificationUriCompleterecord component.- Returns:
- the value of the
verificationUriCompleterecord component
-
expiresIn
public int expiresIn()Returns the value of theexpiresInrecord component.- Returns:
- the value of the
expiresInrecord component
-
interval
public int interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-