import org.asamk.signal.manager.groups.GroupSendingNotAllowedException;
import org.asamk.signal.manager.groups.LastGroupAdminException;
import org.asamk.signal.manager.groups.NotAGroupMemberException;
-import org.asamk.signal.manager.storage.recipients.Profile;
import org.whispersystems.signalservice.api.util.PhoneNumberFormatter;
import java.io.Closeable;
void setRegistrationLockPin(Optional<String> pin) throws IOException, NotPrimaryDeviceException;
- Profile getRecipientProfile(RecipientIdentifier.Single recipient) throws IOException, UnregisteredRecipientException;
-
List<Group> getGroups();
SendGroupMessageResults quitGroup(
/**
* Receive new messages from server, returns if no new message arrive in a timespan of timeout.
*/
- public void receiveMessages(
+ void receiveMessages(
Optional<Duration> timeout, Optional<Integer> maxMessages, ReceiveMessageHandler handler
) throws IOException, AlreadyReceivingException;
void setReceiveConfig(ReceiveConfig receiveConfig);
- boolean hasCaughtUpWithOldMessages();
-
boolean isContactBlocked(RecipientIdentifier.Single recipient);
void sendContacts() throws IOException;