import java.net.URISyntaxException;
import java.time.Duration;
import java.util.ArrayList;
import java.net.URISyntaxException;
import java.time.Duration;
import java.util.ArrayList;
- public void setContactBlocked(
- final RecipientIdentifier.Single recipient, final boolean blocked
+ public void setContactsBlocked(
+ final Collection<RecipientIdentifier.Single> recipients, final boolean blocked
- public void setGroupBlocked(
- final GroupId groupId, final boolean blocked
+ public void setGroupsBlocked(
+ final Collection<GroupId> groupIds, final boolean blocked
- setGroupProperty(groupId, "IsBlocked", blocked);
+ for (final var groupId : groupIds) {
+ setGroupProperty(groupId, "IsBlocked", blocked);
+ }
}
private void setGroupProperty(final GroupId groupId, final String propertyName, final boolean blocked) {
}
private void setGroupProperty(final GroupId groupId, final String propertyName, final boolean blocked) {