diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java deleted file mode 100644 index a8155eea..00000000 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java +++ /dev/null @@ -1,12 +0,0 @@ -package pro.gravit.launchserver.auth.core.interfaces.provider; - -import pro.gravit.launchserver.auth.Feature; -import pro.gravit.launchserver.auth.core.User; -import pro.gravit.launchserver.auth.core.UserSession; - -import java.util.List; - -@Feature("sessions") -public interface AuthSupportGetSessionsFromUser extends AuthSupport { - List getSessionsByUser(User user); -} diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java deleted file mode 100644 index 489d6cbd..00000000 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java +++ /dev/null @@ -1,20 +0,0 @@ -package pro.gravit.launchserver.auth.core.interfaces.provider; - -import pro.gravit.launchserver.auth.core.User; -import pro.gravit.launchserver.auth.core.interfaces.user.UserSupportBanInfo; - -import java.time.LocalDateTime; - -public interface AuthSupportUserBan extends AuthSupport { - UserSupportBanInfo.UserBanInfo banUser(User user, String reason, String moderator, LocalDateTime startTime, LocalDateTime endTime); - - default UserSupportBanInfo.UserBanInfo banUser(User user) { - return banUser(user, null, null, LocalDateTime.now(), null); - } - - void unbanUser(User user); - - default UserSupportBanInfo fetchUserBanInfo(User user) { - return (UserSupportBanInfo) user; - } -} diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java deleted file mode 100644 index 77899389..00000000 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java +++ /dev/null @@ -1,27 +0,0 @@ -package pro.gravit.launchserver.auth.core.interfaces.user; - -import java.time.LocalDateTime; - -public interface UserSupportBanInfo { - UserBanInfo getBanInfo(); - - interface UserBanInfo { - String getId(); - - default String getReason() { - return null; - } - - default String getModerator() { - return null; - } - - default LocalDateTime getStartDate() { - return null; - } - - default LocalDateTime getEndDate() { - return null; - } - } -}