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 TypeMethodDescriptionvoid
evict
(UserIdentity user) Removes the user from the cache.void
evictRetention
(Set<UserIdentity> onlinePlayers) Refreshes player data access times so that they do not get evicted.boolean
getLoginConfirmation
(UserIdentity identity) boolean
hasLoginConfirmation
(UserIdentity identity) Submits a guild invite requestlogUserLogin
(String guildMemberId, UserIdentity identity) Logs a user login in the API.void
shutdown()
Properly shuts down the service.default CompletableFuture<Void>
startLoginProcess
(UserIdentity identity, LoginHandler loginHandler) startLoginProcess
(UserIdentity identity, LoginHandler loginHandler, boolean forceVerify) submitLogReport
(ReportLog log) Submits theLogReport
to 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 ofUserIdentity
that 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 theLogReport
to 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.