Conversations/src/main/java/eu/siacs/conversations/entities/ListItem.java

38 lines
650 B
Java
Raw Normal View History

2014-10-22 12:38:44 -04:00
package eu.siacs.conversations.entities;
import android.content.Context;
2014-11-16 11:21:21 -05:00
import java.util.List;
import eu.siacs.conversations.xmpp.jid.Jid;
2014-10-22 12:38:44 -04:00
public interface ListItem extends Comparable<ListItem> {
String getDisplayName();
2014-10-22 12:38:44 -04:00
String getDisplayJid();
2014-11-16 11:21:21 -05:00
Jid getJid();
2014-11-16 11:21:21 -05:00
List<Tag> getTags(Context context);
final class Tag {
private final String name;
private final int color;
2014-11-16 11:21:21 -05:00
public Tag(final String name, final int color) {
2014-11-16 11:21:21 -05:00
this.name = name;
this.color = color;
}
public int getColor() {
return this.color;
}
public String getName() {
return this.name;
}
}
boolean match(Context context, final String needle);
2014-10-22 12:38:44 -04:00
}