aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/entities/ListItem.java
blob: 3b27c1baad122935385e7c37c86d9e38a42ed229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package de.pixart.messenger.entities;

import android.content.Context;

import java.util.List;

import de.pixart.messenger.xmpp.jid.Jid;

public interface ListItem extends Comparable<ListItem> {
    String getDisplayName();

    String getDisplayJid();

    int getOffline();

    Jid getJid();

    List<Tag> getTags(Context context);

    final class Tag {
        private final String name;
        private final int color;
        private final int offline;

        public Tag(final String name, final int color, final int offline) {
            this.name = name;
            this.color = color;
            this.offline = offline;
        }

        public int getColor() {
            return this.color;
        }

        public String getName() {
            return this.name;
        }

        public int getOffline() {
            return this.offline;
        }
    }

    boolean match(Context context, final String needle);
}