Interface IProfileService
- All Known Implementing Classes:
CachingProfileService,PluginMessagingProfileService
public interface IProfileService
Represents a store for cached user data from the GamerSafer API.
-
Method Summary
Modifier and TypeMethodDescriptionvoidevict(UserIdentity user) Removes the user from the cache.voidevictRetention(Set<UserIdentity> onlinePlayers) Refreshes player data access times so that they do not get evicted.booleangetLoginConfirmation(UserIdentity identity) booleanhasLoginConfirmation(UserIdentity identity) Submits a guild invite requestlogUserLogin(String guildMemberId, UserIdentity identity) Logs a user login in the API.voidshutdown()Properly shuts down the service.default CompletableFuture<Void>startLoginProcess(UserIdentity identity, LoginHandler loginHandler) startLoginProcess(UserIdentity identity, LoginHandler loginHandler, boolean forceVerify) submitLogReport(ReportLog log) Submits theLogReportto the API.Test the connection to the APISubmits a guild member verification request
-
Method Details
-
evictRetention
Refreshes player data access times so that they do not get evicted.- Parameters:
onlinePlayers- a set ofUserIdentitythat should NOT be evicted
-
testConnection
CompletableFuture<Boolean> testConnection()Test the connection to the API- Returns:
- whether the connection to the API was successful
-
submitLogReport
Submits theLogReportto the API.- Parameters:
log- theLogReport- Returns:
- a CompletableFuture indicating submission success
-
invite
Submits a guild invite request- Parameters:
uuid- the GamerSafer guild member id- Returns:
- a QR code image in Data-URI format, or null the player does not have a GamerSafer account, the request timed out/failed
-
verify
Submits a guild member verification request- Parameters:
guildMemberId- the GamerSafer guild member id- Returns:
- the verification id of the verification
-
shutdown
void shutdown()Properly shuts down the service.