aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/xmpp/OnUpdateBlocklist.java
blob: 3f660502578d216b376ba64d4b293bd680359b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package de.pixart.messenger.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 enum Status {
        BLOCKED,
        UNBLOCKED
    }

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