mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refactor command creation
This commit is contained in:
parent
47143a90e1
commit
af292d8f0e
45 changed files with 436 additions and 282 deletions
|
@ -3,10 +3,13 @@ package org.asamk.signal.commands;
|
|||
import net.sourceforge.argparse4j.inf.Namespace;
|
||||
|
||||
import org.asamk.Signal;
|
||||
import org.asamk.signal.OutputWriter;
|
||||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.freedesktop.dbus.connections.impl.DBusConnection;
|
||||
|
||||
public interface ExtendedDbusCommand extends Command {
|
||||
public interface ExtendedDbusCommand extends CliCommand {
|
||||
|
||||
void handleCommand(Namespace ns, Signal signal, DBusConnection dbusconnection) throws CommandException;
|
||||
void handleCommand(
|
||||
Namespace ns, Signal signal, DBusConnection dbusconnection, final OutputWriter outputWriter
|
||||
) throws CommandException;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue