mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[ANY] Delete old interfaces
This commit is contained in:
parent
3475f2f912
commit
d9082f21a3
3 changed files with 0 additions and 59 deletions
|
@ -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<UserSession> getSessionsByUser(User user);
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue