Rename JsonRpcCommand class

This commit is contained in:
AsamK 2021-11-10 17:11:16 +01:00
parent 2879b31aba
commit 64af4914ee
5 changed files with 17 additions and 12 deletions

View file

@ -3,9 +3,6 @@ package org.asamk.signal.commands;
import com.fasterxml.jackson.core.type.TypeReference;
import org.asamk.signal.OutputType;
import org.asamk.signal.OutputWriter;
import org.asamk.signal.commands.exceptions.CommandException;
import org.asamk.signal.manager.Manager;
import java.util.List;
@ -15,8 +12,6 @@ public interface JsonRpcCommand<T> extends Command {
return null;
}
void handleCommand(T request, Manager m, OutputWriter outputWriter) throws CommandException;
default List<OutputType> getSupportedOutputTypes() {
return List.of(OutputType.JSON);
}