import org.freedesktop.dbus.DBusSignal;
import org.freedesktop.dbus.exceptions.DBusException;
import org.whispersystems.signalservice.api.push.exceptions.EncapsulatedExceptions;
+import org.whispersystems.signalservice.api.util.InvalidNumberException;
import java.io.IOException;
import java.util.List;
void sendGroupMessage(String message, List<String> attachments, byte[] groupId) throws EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, IOException;
- String getContactName(String number);
+ String getContactName(String number) throws InvalidNumberException;
- void setContactName(String number, String name);
+ void setContactName(String number, String name) throws InvalidNumberException;
+
+ void setContactBlocked(String number, boolean blocked) throws InvalidNumberException;
+
+ void setGroupBlocked(byte[] groupId, boolean blocked) throws GroupNotFoundException;
List<byte[]> getGroupIds();