mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Add MultiAccountManager
This commit is contained in:
parent
6261934dda
commit
4a1af0786c
18 changed files with 221 additions and 131 deletions
|
@ -7,6 +7,7 @@ import net.sourceforge.argparse4j.inf.Namespace;
|
|||
import org.asamk.signal.JsonWriter;
|
||||
import org.asamk.signal.OutputType;
|
||||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.asamk.signal.manager.MultiAccountManager;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -18,7 +19,7 @@ public interface JsonRpcMultiLocalCommand extends JsonRpcMultiCommand<Map<String
|
|||
}
|
||||
|
||||
default void handleCommand(
|
||||
Map<String, Object> request, SignalCreator c, JsonWriter jsonWriter
|
||||
Map<String, Object> request, MultiAccountManager c, JsonWriter jsonWriter
|
||||
) throws CommandException {
|
||||
Namespace commandNamespace = new JsonRpcNamespace(request == null ? Map.of() : request);
|
||||
handleCommand(commandNamespace, c, jsonWriter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue