Record Class RequestMicrosoftAPIImpl.DeviceCodeResponse

java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.DeviceCodeResponse
Enclosing class:
RequestMicrosoftAPIImpl

public static record RequestMicrosoftAPIImpl.DeviceCodeResponse(String device_code, String user_code, String verification_uri, String verification_uri_complete, long expires_in, long interval) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeviceCodeResponse(String device_code, String user_code, String verification_uri, String verification_uri_complete, long expires_in, long interval)
    Creates an instance of a DeviceCodeResponse record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the device_code record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the expires_in record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the interval record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the user_code record component.
    Returns the value of the verification_uri record component.
    Returns the value of the verification_uri_complete record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a DeviceCodeResponse record class.
      Parameters:
      device_code - the value for the device_code record component
      user_code - the value for the user_code record component
      verification_uri - the value for the verification_uri record component
      verification_uri_complete - the value for the verification_uri_complete record component
      expires_in - the value for the expires_in record component
      interval - the value for the interval 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • device_code

      public String device_code()
      Returns the value of the device_code record component.
      Returns:
      the value of the device_code record component
    • user_code

      public String user_code()
      Returns the value of the user_code record component.
      Returns:
      the value of the user_code record component
    • verification_uri

      public String verification_uri()
      Returns the value of the verification_uri record component.
      Returns:
      the value of the verification_uri record component
    • verification_uri_complete

      public String verification_uri_complete()
      Returns the value of the verification_uri_complete record component.
      Returns:
      the value of the verification_uri_complete record component
    • expires_in

      public long expires_in()
      Returns the value of the expires_in record component.
      Returns:
      the value of the expires_in record component
    • interval

      public long interval()
      Returns the value of the interval record component.
      Returns:
      the value of the interval record component