mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-05 00:53:04 +00:00
[AB-xxx] adding tests for command management services
some code improvements
This commit is contained in:
@@ -9,7 +9,6 @@ import java.util.List;
|
||||
|
||||
public interface CommandInServerManagementService {
|
||||
ACommandInAServer createCommandInServer(ACommand command, AServer server);
|
||||
ACommandInAServer createCommandInServer(ACommand command, AServer server, Long commandId);
|
||||
boolean doesCommandExistInServer(ACommand command, AServer server);
|
||||
ACommandInAServer getCommandForServer(ACommand command, AServer server);
|
||||
void setCooldownForCommandInServer(ACommand command, AServer server, Duration duration);
|
||||
|
||||
@@ -8,7 +8,6 @@ import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
public interface CommandManagementService {
|
||||
ACommand createCommand(String name, String moduleName, String featureName);
|
||||
ACommand createCommand(String name, AModule moduleName, AFeature feature);
|
||||
Optional<ACommand> findCommandByNameOptional(String name);
|
||||
ACommand findCommandByName(String name);
|
||||
|
||||
Reference in New Issue
Block a user