Implement Dbus setPin and removePin (#733)

and update documentation
This commit is contained in:
John Freed 2021-09-21 22:26:26 +02:00 committed by GitHub
parent 6c29d90503
commit d622967192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 0 deletions

View file

@ -1,10 +1,13 @@
package org.asamk;
import org.asamk.Signal.Error;
import org.freedesktop.dbus.exceptions.DBusException;
import org.freedesktop.dbus.exceptions.DBusExecutionException;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.messages.DBusSignal;
import org.whispersystems.libsignal.util.guava.Optional;
import java.io.IOException;
import java.util.List;
/**
@ -87,6 +90,10 @@ public interface Signal extends DBusInterface {
String name, String about, String aboutEmoji, String avatarPath, boolean removeAvatar
) throws Error.Failure;
void removePin();
void setPin(String registrationLockPin);
String version();
List<String> listNumbers();