public class FileVerificationStorage extends VerificationStorage
Constructor and Description |
---|
FileVerificationStorage(Path userDir) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<Verificator>> |
loadAllVerifications(UUID playerId)
Get all verification made previously
|
CompletableFuture<Void> |
saveVerification(Verificator verif)
Save verification
|
getNewFileName, getStorage, getStorageId, init, register, setDefaultStorage, setStorageId
public FileVerificationStorage(Path userDir)
public CompletableFuture<List<Verificator>> loadAllVerifications(UUID playerId)
VerificationStorage
loadAllVerifications
in class VerificationStorage
playerId
- the player UUIDpublic CompletableFuture<Void> saveVerification(Verificator verif)
VerificationStorage
saveVerification
in class VerificationStorage
verif
- the verificator to save