aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/Contact.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/gultsch/chat/Contact.java')
-rw-r--r--src/de/gultsch/chat/Contact.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/de/gultsch/chat/Contact.java b/src/de/gultsch/chat/Contact.java
deleted file mode 100644
index 64204461..00000000
--- a/src/de/gultsch/chat/Contact.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package de.gultsch.chat;
-
-import java.io.Serializable;
-
-import android.net.Uri;
-
-public class Contact implements Serializable {
- private static final long serialVersionUID = -4570817093119419962L;
- protected String display_name;
- protected String jid;
- protected String photo;
-
- public Contact(String display_name, String jid, String photo) {
- this.display_name = display_name;
- this.jid = jid;
- this.photo = photo;
- }
-
- public String getDisplayName() {
- return this.display_name;
- }
-
- public Uri getProfilePhoto() {
- if (photo == null) return null;
- return Uri.parse(photo);
- }
-
- public String getJid() {
- return this.jid;
- }
-
- public boolean match(String needle) {
- return (jid.toLowerCase().contains(needle.toLowerCase()) || (display_name.toLowerCase().contains(needle.toLowerCase())));
- }
-}