mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Add JsonRpcMultiCommand
This commit is contained in:
parent
64af4914ee
commit
9c67aabebb
8 changed files with 90 additions and 26 deletions
|
@ -1,10 +1,10 @@
|
|||
package org.asamk.signal.commands;
|
||||
|
||||
import org.asamk.signal.OutputWriter;
|
||||
import org.asamk.signal.JsonWriter;
|
||||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.asamk.signal.manager.Manager;
|
||||
|
||||
public interface JsonRpcSingleCommand<T> extends JsonRpcCommand<T> {
|
||||
|
||||
void handleCommand(T request, Manager m, OutputWriter outputWriter) throws CommandException;
|
||||
void handleCommand(T request, Manager m, JsonWriter jsonWriter) throws CommandException;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue