mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Move JSONUserService to common
This commit is contained in:
1 parent
b1c4c48e83
commit
e263bccbfc
8 files changed
+79
-51
No files matched your search
@@ -5,23 +5,23 @@ import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface UserService {
|
||||
public interface UserService<T extends ChatUser> {
|
||||
|
||||
@Nullable
|
||||
ChatUser wrap(UUID uuid);
|
||||
T wrap(UUID uuid);
|
||||
|
||||
@Nullable
|
||||
ChatUser wrapIfLoaded(@NonNull UUID uuid);
|
||||
T wrapIfLoaded(@NonNull UUID uuid);
|
||||
|
||||
@Nullable
|
||||
ChatUser refreshUser(@NonNull UUID uuid);
|
||||
T refreshUser(@NonNull UUID uuid);
|
||||
|
||||
void onDisable();
|
||||
|
||||
void invalidate(@NonNull ChatUser user);
|
||||
void invalidate(@NonNull T user);
|
||||
|
||||
void validate(@NonNull ChatUser user);
|
||||
void validate(@NonNull T user);
|
||||
|
||||
@NonNull Iterable<@NonNull ChatUser> onlineUsers();
|
||||
@NonNull Iterable<@NonNull T> onlineUsers();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user