Class RequestMicrosoftAPIImpl
java.lang.Object
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl
- All Implemented Interfaces:
pro.gravit.launcher.core.api.features.AuthFeatureAPI, pro.gravit.launcher.core.api.features.CoreFeatureAPI, pro.gravit.launcher.core.api.features.FeatureAPI, pro.gravit.launcher.core.api.features.UserFeatureAPI
public class RequestMicrosoftAPIImpl
extends Object
implements pro.gravit.launcher.core.api.features.CoreFeatureAPI, pro.gravit.launcher.core.api.features.AuthFeatureAPI, pro.gravit.launcher.core.api.features.UserFeatureAPI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from interface pro.gravit.launcher.core.api.features.AuthFeatureAPI
pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthResponse, pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthTokenNested classes/interfaces inherited from interface pro.gravit.launcher.core.api.features.CoreFeatureAPI
pro.gravit.launcher.core.api.features.CoreFeatureAPI.LauncherUpdateInfo, pro.gravit.launcher.core.api.features.CoreFeatureAPI.UpdateVariantNested classes/interfaces inherited from interface pro.gravit.launcher.core.api.features.UserFeatureAPI
pro.gravit.launcher.core.api.features.UserFeatureAPI.CheckServerResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthResponse> CompletableFuture<pro.gravit.launcher.core.api.features.UserFeatureAPI.CheckServerResponse> checkServer(String username, String serverID, boolean extended) CompletableFuture<pro.gravit.launcher.core.api.features.CoreFeatureAPI.LauncherUpdateInfo> exit()CompletableFuture<List<pro.gravit.launcher.core.api.method.AuthMethod>> CompletableFuture<pro.gravit.launcher.core.api.model.SelfUser> CompletableFuture<pro.gravit.launcher.core.api.model.User> getUserByUsername(String username) CompletableFuture<pro.gravit.launcher.core.api.model.User> getUserByUUID(UUID uuid) static UUIDgetUUIDFromMojangHash(String hash) joinServer(String username, String accessToken, String serverID) joinServer(UUID uuid, String accessToken, String serverID) CompletableFuture<pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken> refreshToken(String refreshToken) CompletableFuture<pro.gravit.launcher.core.api.model.SelfUser> Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launcher.core.api.features.AuthFeatureAPI
restoreFromExternalMethods inherited from interface pro.gravit.launcher.core.api.features.UserFeatureAPI
getUsersByUsernames
-
Constructor Details
-
RequestMicrosoftAPIImpl
public RequestMicrosoftAPIImpl() -
RequestMicrosoftAPIImpl
-
-
Method Details
-
getUUIDFromMojangHash
-
getAuthMethods
- Specified by:
getAuthMethodsin interfacepro.gravit.launcher.core.api.features.CoreFeatureAPI
-
checkUpdates
public CompletableFuture<pro.gravit.launcher.core.api.features.CoreFeatureAPI.LauncherUpdateInfo> checkUpdates()- Specified by:
checkUpdatesin interfacepro.gravit.launcher.core.api.features.CoreFeatureAPI
-
getCurrentUser
- Specified by:
getCurrentUserin interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI
-
auth
public CompletableFuture<pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthResponse> auth(String login, pro.gravit.launcher.core.api.method.AuthMethodPassword password) - Specified by:
authin interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI
-
refreshToken
public CompletableFuture<pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken> refreshToken(String refreshToken) - Specified by:
refreshTokenin interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI
-
restore
public CompletableFuture<pro.gravit.launcher.core.api.model.SelfUser> restore(String accessToken, boolean fetchUser) - Specified by:
restorein interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI
-
exit
- Specified by:
exitin interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI
-
getUserByUsername
public CompletableFuture<pro.gravit.launcher.core.api.model.User> getUserByUsername(String username) - Specified by:
getUserByUsernamein interfacepro.gravit.launcher.core.api.features.UserFeatureAPI
-
getUserByUUID
- Specified by:
getUserByUUIDin interfacepro.gravit.launcher.core.api.features.UserFeatureAPI
-
joinServer
- Specified by:
joinServerin interfacepro.gravit.launcher.core.api.features.UserFeatureAPI
-
joinServer
- Specified by:
joinServerin interfacepro.gravit.launcher.core.api.features.UserFeatureAPI
-
checkServer
public CompletableFuture<pro.gravit.launcher.core.api.features.UserFeatureAPI.CheckServerResponse> checkServer(String username, String serverID, boolean extended) - Specified by:
checkServerin interfacepro.gravit.launcher.core.api.features.UserFeatureAPI
-