2014-10-22 12:38:44 -04:00
|
|
|
package eu.siacs.conversations.entities;
|
|
|
|
|
2014-11-16 11:21:21 -05:00
|
|
|
import java.util.List;
|
|
|
|
|
2014-11-05 15:55:47 -05:00
|
|
|
import eu.siacs.conversations.xmpp.jid.Jid;
|
|
|
|
|
2014-10-22 12:38:44 -04:00
|
|
|
public interface ListItem extends Comparable<ListItem> {
|
|
|
|
public String getDisplayName();
|
|
|
|
|
2014-11-05 15:55:47 -05:00
|
|
|
public Jid getJid();
|
2014-11-16 11:21:21 -05:00
|
|
|
|
|
|
|
public List<Tag> getTags();
|
|
|
|
|
|
|
|
public final class Tag {
|
2014-12-21 15:43:58 -05:00
|
|
|
private final String name;
|
|
|
|
private final int color;
|
2014-11-16 11:21:21 -05:00
|
|
|
|
2014-12-21 15:43:58 -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;
|
|
|
|
}
|
|
|
|
}
|
2014-12-21 15:43:58 -05:00
|
|
|
|
|
|
|
public boolean match(final String needle);
|
2014-10-22 12:38:44 -04:00
|
|
|
}
|