Record Class RequestMicrosoftAPIImpl.MinecraftLoginWithXBoxResponse
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.MinecraftLoginWithXBoxResponse
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccess_tokenrecord 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.roles()Returns the value of therolesrecord component.Returns the value of thetoken_typerecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
MinecraftLoginWithXBoxResponse
public MinecraftLoginWithXBoxResponse(String username, List<String> roles, String access_token, String token_type, long expires_in) Creates an instance of aMinecraftLoginWithXBoxResponserecord class.- Parameters:
username- the value for theusernamerecord componentroles- the value for therolesrecord componentaccess_token- the value for theaccess_tokenrecord componenttoken_type- the value for thetoken_typerecord componentexpires_in- the value for theexpires_inrecord 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. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
roles
-
access_token
Returns the value of theaccess_tokenrecord component.- Returns:
- the value of the
access_tokenrecord component
-
token_type
Returns the value of thetoken_typerecord component.- Returns:
- the value of the
token_typerecord component
-
expires_in
public long expires_in()Returns the value of theexpires_inrecord component.- Returns:
- the value of the
expires_inrecord component
-