mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-09 07:10:37 +00:00
implement Dbus commands
* 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
This commit is contained in:
parent
661d78e4a8
commit
2e7f4c7085
9 changed files with 149 additions and 130 deletions
|
@ -12,25 +12,7 @@ import java.util.List;
|
|||
*/
|
||||
public interface SignalControl extends DBusInterface {
|
||||
|
||||
void register(
|
||||
String number, boolean voiceVerification
|
||||
) throws Error.Failure, Error.InvalidNumber, Error.RequiresCaptcha;
|
||||
|
||||
void registerWithCaptcha(
|
||||
String number, boolean voiceVerification, String captcha
|
||||
) throws Error.Failure, Error.InvalidNumber, Error.RequiresCaptcha;
|
||||
|
||||
void verify(String number, String verificationCode) throws Error.Failure, Error.InvalidNumber;
|
||||
|
||||
void verifyWithPin(String number, String verificationCode, String pin) throws Error.Failure, Error.InvalidNumber;
|
||||
|
||||
String link(String newDeviceName) throws Error.Failure;
|
||||
|
||||
String version();
|
||||
|
||||
List<DBusPath> listAccounts();
|
||||
|
||||
String getObjectPath();
|
||||
List<DBusPath> listAccounts();
|
||||
|
||||
interface Error {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue