aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/xmpp/OnUpdateBlocklist.java
blob: 92e72cfa8220390148dd64de87aeb191fbdb3eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package eu.siacs.conversations.xmpp;

public interface OnUpdateBlocklist {
	// Use an enum instead of a boolean to make sure we don't run into the boolean trap
	// (`onUpdateBlocklist(true)' doesn't read well, and could be confusing).
	public static enum Status {
		BLOCKED,
		UNBLOCKED
	}

	@SuppressWarnings("MethodNameSameAsClassName")
	public void OnUpdateBlocklist(final Status status);
}