Record Class RequestMicrosoftAPIImpl.MicrosoftUser
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.MicrosoftUser
- All Implemented Interfaces:
pro.gravit.launcher.core.api.model.SelfUser, pro.gravit.launcher.core.api.model.User
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.assets()Returns the value of theassetsrecord component.final booleanIndicates whether some other object is "equal to" this one.pro.gravit.launcher.core.api.model.UserPermissionsgetUUID()final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
MicrosoftUser
public MicrosoftUser(String username, UUID uuid, Map<String, pro.gravit.launcher.core.api.model.Texture> assets, Map<String, String> properties, String accessToken) Creates an instance of aMicrosoftUserrecord class.- Parameters:
username- the value for theusernamerecord componentuuid- the value for theuuidrecord componentassets- the value for theassetsrecord componentproperties- the value for thepropertiesrecord componentaccessToken- the value for theaccessTokenrecord component
-
-
Method Details
-
getUsername
- Specified by:
getUsernamein interfacepro.gravit.launcher.core.api.model.User
-
getUUID
- Specified by:
getUUIDin interfacepro.gravit.launcher.core.api.model.User
-
getAssets
-
getProperties
-
getAccessToken
- Specified by:
getAccessTokenin interfacepro.gravit.launcher.core.api.model.SelfUser
-
getPermissions
public pro.gravit.launcher.core.api.model.UserPermissions getPermissions()- Specified by:
getPermissionsin interfacepro.gravit.launcher.core.api.model.SelfUser
-
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). -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
assets
-
properties
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-