signal-cli/src/main/java/org/asamk/signal/commands/JsonRpcCommand.java
2021-11-10 17:11:16 +01:00

18 lines
388 B
Java

package org.asamk.signal.commands;
import com.fasterxml.jackson.core.type.TypeReference;
import org.asamk.signal.OutputType;
import java.util.List;
public interface JsonRpcCommand<T> extends Command {
default TypeReference<T> getRequestType() {
return null;
}
default List<OutputType> getSupportedOutputTypes() {
return List.of(OutputType.JSON);
}
}