mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-07 14:30:38 +00:00
* String link() * String link(String newDeviceName) * void register(String number, boolean voiceVerification) * void registerWithCaptcha(String number, boolean voiceVerification, String captcha) * void verify(String number, String verificationCode) * void verifyWithPin(String number, String verificationCode, String pin) make dataPath and serviceEnvironment public from App class make USER_AGENT ("signal-cli") public from BaseConfig class add timeout error handling to finishDeviceLink method update DBus documentation
40 lines
958 B
Java
40 lines
958 B
Java
package org.asamk;
|
|
|
|
import org.freedesktop.dbus.DBusPath;
|
|
import org.freedesktop.dbus.exceptions.DBusExecutionException;
|
|
import org.freedesktop.dbus.interfaces.DBusInterface;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* DBus interface for the org.asamk.SignalControl interface.
|
|
* Including emitted Signals and returned Errors.
|
|
*/
|
|
public interface SignalControl extends DBusInterface {
|
|
|
|
List<DBusPath> listAccounts();
|
|
|
|
interface Error {
|
|
|
|
class Failure extends DBusExecutionException {
|
|
|
|
public Failure(final String message) {
|
|
super(message);
|
|
}
|
|
}
|
|
|
|
class InvalidNumber extends DBusExecutionException {
|
|
|
|
public InvalidNumber(final String message) {
|
|
super(message);
|
|
}
|
|
}
|
|
|
|
class RequiresCaptcha extends DBusExecutionException {
|
|
|
|
public RequiresCaptcha(final String message) {
|
|
super(message);
|
|
}
|
|
}
|
|
}
|
|
}
|