1package eu.siacs.conversations.entities;
2
3import android.content.Context;
4
5import java.util.List;
6
7import eu.siacs.conversations.services.AvatarService;
8import eu.siacs.conversations.xmpp.Jid;
9
10
11public interface ListItem extends Comparable<ListItem>, AvatarService.Avatarable {
12 String getDisplayName();
13
14 Jid getJid();
15
16 List<Tag> getTags(Context context);
17
18 final class Tag {
19 private final String name;
20 private final int color;
21
22 public Tag(final String name, final int color) {
23 this.name = name;
24 this.color = color;
25 }
26
27 public int getColor() {
28 return this.color;
29 }
30
31 public String getName() {
32 return this.name;
33 }
34 }
35
36 boolean match(Context context, final String needle);
37}