mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
18 lines
388 B
Java
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);
|
|
}
|
|
}
|