mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
add isRegistered to SignalControl
This commit is contained in:
parent
88ea61e28f
commit
cfc0a1c369
2 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,8 @@ public interface SignalControl extends DBusInterface {
|
|||
String number, boolean voiceVerification
|
||||
) throws Error.Failure, Error.InvalidNumber, Error.RequiresCaptcha;
|
||||
|
||||
boolean isRegistered();
|
||||
|
||||
void registerWithCaptcha(
|
||||
String number, boolean voiceVerification, String captcha
|
||||
) throws Error.Failure, Error.InvalidNumber, Error.RequiresCaptcha;
|
||||
|
|
|
@ -47,6 +47,11 @@ public class DbusSignalControlImpl implements org.asamk.SignalControl {
|
|||
registerWithCaptcha(number, voiceVerification, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRegistered() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerWithCaptcha(
|
||||
final String number, final boolean voiceVerification, final String captcha
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue