Package page.codeberg.friedolyn.meta
Interface PolledMetadata.BannedUserCallback
- All Known Implementing Classes:
Friedolyn.BannedUserCallback
- Enclosing class:
PolledMetadata
public static interface PolledMetadata.BannedUserCallback
Someone who is interested in being informed if the
currently logged-in user is found to be
banned from using the application.-
Method Summary
Modifier and TypeMethodDescriptionvoidonBansFound(@NonNull Set<BanLevel> banLevels) Is called as soon as the currently logged-in user has been identified as banned from using Friedolyn.voidonBansFound(@NonNull Set<BanLevel> banLevels, @NonNull String message) Is called as soon as the currently logged-in user has been identified as banned from using Friedolyn.
-
Method Details
-
onBansFound
Is called as soon as the currently logged-in user has been identified as banned from using Friedolyn.- Parameters:
banLevels- All application features that the user is banned from using. Will not be empty.- Throws:
IllegalArgumentException- If the set of ban levels is empty.- See Also:
-
onBansFound
void onBansFound(@NonNull @NonNull Set<BanLevel> banLevels, @NonNull @NonNull String message) throws IllegalArgumentException Is called as soon as the currently logged-in user has been identified as banned from using Friedolyn.- Parameters:
banLevels- All application features that the user is banned from using. Will not be empty.message- An explanation from the developers to the user banned about why they were banned and what this means for them. Must not be empty. UseonBansFound(Set)instead if no message was provided.- Throws:
IllegalArgumentException- If the set of ban levels is empty or if the message is empty.- See Also:
-