Record Class RequestMicrosoftAPIImpl.MojangProfileByTokenTextureResponse
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.MojangProfileByTokenTextureResponse
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondigest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisActive()state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.pro.gravit.launcher.core.api.model.Textureurl()Returns the value of theurlrecord component.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
MojangProfileByTokenTextureResponse
public MojangProfileByTokenTextureResponse(String id, String state, String url, String digest, String variant) Creates an instance of aMojangProfileByTokenTextureResponserecord class.- Parameters:
id- the value for theidrecord componentstate- the value for thestaterecord componenturl- the value for theurlrecord componentdigest- the value for thedigestrecord componentvariant- the value for thevariantrecord component
-
-
Method Details
-
isActive
public boolean isActive() -
toTexture
public pro.gravit.launcher.core.api.model.Texture toTexture() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
digest
Returns the value of thedigestrecord component.- Returns:
- the value of the
digestrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-