mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 19:10:38 +00:00
For daemon command all local users will be exposed as dbus objects If only one local user exists, all other commands will use that user, otherwise a user has to be specified.
16 lines
438 B
Java
16 lines
438 B
Java
package org.asamk.signal.commands;
|
|
|
|
import net.sourceforge.argparse4j.inf.Namespace;
|
|
|
|
import org.asamk.Signal;
|
|
import org.asamk.signal.dbus.DbusSignalImpl;
|
|
import org.asamk.signal.manager.Manager;
|
|
|
|
public interface DbusCommand extends LocalCommand {
|
|
|
|
int handleCommand(Namespace ns, Signal signal);
|
|
|
|
default int handleCommand(final Namespace ns, final Manager m) {
|
|
return handleCommand(ns, new DbusSignalImpl(m));
|
|
}
|
|
}
|