Class RemoteProfilesProvider
java.lang.Object
pro.gravit.launchserver.auth.profiles.ProfilesProvider
pro.gravit.launchserver.auth.profiles.RemoteProfilesProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from class ProfilesProvider
ProfilesProvider.CompletedProfile, ProfilesProvider.ProfileAction, ProfilesProvider.UncompletedProfile, ProfilesProvider.UpdateFlagModifier and TypeClassDescriptionstatic interfacestatic final recordstatic interfacestatic enum -
Field Summary
FieldsFields inherited from class ProfilesProvider
providers, serverModifier and TypeFieldDescriptionstatic final pro.gravit.utils.ProviderMap<ProfilesProvider> protected LaunchServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, String description, ProfilesProvider.CompletedProfile basic) voidvoiddownload(ProfilesProvider.CompletedProfile profile, Map<String, Path> files, boolean assets) voidexecute(pro.gravit.launcher.core.hasher.HashedDir dir, List<ProfilesProvider.ProfileAction> actions) voidexecute(pro.gravit.launcher.core.hasher.HashedDir dir, ProfilesProvider.ProfileAction action) getProfiles(Client socketClient) pro.gravit.launcher.core.hasher.HashedDirpushUpdate(ProfilesProvider.UncompletedProfile profile, String tag, pro.gravit.launcher.base.profiles.ClientProfile clientProfile, List<ProfilesProvider.ProfileAction> assetActions, List<ProfilesProvider.ProfileAction> clientActions, List<ProfilesProvider.UpdateFlag> flags) uploadFile(HttpRequest.BodyPublisher bodyPublisher) Methods inherited from class ProfilesProvider
close, get, init, registerProvidersModifier and TypeMethodDescriptionvoidclose()get(ProfilesProvider.UncompletedProfile profile) voidinit(LaunchServer server) static void
-
Field Details
-
baseUrl
-
accessToken
-
-
Constructor Details
-
RemoteProfilesProvider
public RemoteProfilesProvider()
-
-
Method Details
-
create
public ProfilesProvider.UncompletedProfile create(String name, String description, ProfilesProvider.CompletedProfile basic) - Specified by:
createin classProfilesProvider
-
delete
- Specified by:
deletein classProfilesProvider
-
getProfiles
- Specified by:
getProfilesin classProfilesProvider
-
pushUpdate
public ProfilesProvider.CompletedProfile pushUpdate(ProfilesProvider.UncompletedProfile profile, String tag, pro.gravit.launcher.base.profiles.ClientProfile clientProfile, List<ProfilesProvider.ProfileAction> assetActions, List<ProfilesProvider.ProfileAction> clientActions, List<ProfilesProvider.UpdateFlag> flags) throws IOException - Specified by:
pushUpdatein classProfilesProvider- Throws:
IOException
-
download
public void download(ProfilesProvider.CompletedProfile profile, Map<String, Path> files, boolean assets) throws IOException- Specified by:
downloadin classProfilesProvider- Throws:
IOException
-
getUnconnectedDirectory
- Specified by:
getUnconnectedDirectoryin classProfilesProvider
-
get
- Specified by:
getin classProfilesProvider
-
get
- Specified by:
getin classProfilesProvider
-
uploadFile
public RemoteProfilesProvider.HttpFileUploadResponse uploadFile(HttpRequest.BodyPublisher bodyPublisher) -
execute
public void execute(pro.gravit.launcher.core.hasher.HashedDir dir, List<ProfilesProvider.ProfileAction> actions) throws IOException - Throws:
IOException
-
execute
public void execute(pro.gravit.launcher.core.hasher.HashedDir dir, ProfilesProvider.ProfileAction action) throws IOException - Throws:
IOException
-