Contents
Record Class OAuthClient.DeviceAuthResponse
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.auth.oauth.OAuthClient.DeviceAuthResponse
- Enclosing class:
OAuthClient
-
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.
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-