Record Class RequestMicrosoftAPIImpl.DeviceCodeResponse
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.DeviceCodeResponse
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceCodeResponse(String device_code, String user_code, String verification_uri, String verification_uri_complete, long expires_in, long interval) Creates an instance of aDeviceCodeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedevice_coderecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpires_inrecord component.final inthashCode()Returns a hash code value for this object.longinterval()Returns the value of theintervalrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuser_coderecord component.Returns the value of theverification_urirecord component.Returns the value of theverification_uri_completerecord component.
-
Constructor Details
-
DeviceCodeResponse
public DeviceCodeResponse(String device_code, String user_code, String verification_uri, String verification_uri_complete, long expires_in, long interval) Creates an instance of aDeviceCodeResponserecord class.- Parameters:
device_code- the value for thedevice_coderecord componentuser_code- the value for theuser_coderecord componentverification_uri- the value for theverification_urirecord componentverification_uri_complete- the value for theverification_uri_completerecord componentexpires_in- the value for theexpires_inrecord 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. -
device_code
Returns the value of thedevice_coderecord component.- Returns:
- the value of the
device_coderecord component
-
user_code
Returns the value of theuser_coderecord component.- Returns:
- the value of the
user_coderecord component
-
verification_uri
Returns the value of theverification_urirecord component.- Returns:
- the value of the
verification_urirecord component
-
verification_uri_complete
Returns the value of theverification_uri_completerecord component.- Returns:
- the value of the
verification_uri_completerecord component
-
expires_in
public long expires_in()Returns the value of theexpires_inrecord component.- Returns:
- the value of the
expires_inrecord component
-
interval
public long interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-