aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities/Contact.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-10 03:34:00 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-10 03:34:00 +0100
commit2d0c0e6a4081955b68669c82071a5099e2e1a96e (patch)
tree229879dfa6611547331849952b220f5fd4b82d54 /src/de/gultsch/chat/entities/Contact.java
parentc6440aab12460490ef8e9167eac0b515e04f1cdf (diff)
contact badges
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/entities/Contact.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/de/gultsch/chat/entities/Contact.java b/src/de/gultsch/chat/entities/Contact.java
index 25852319..9c987e09 100644
--- a/src/de/gultsch/chat/entities/Contact.java
+++ b/src/de/gultsch/chat/entities/Contact.java
@@ -24,7 +24,7 @@ public class Contact extends AbstractEntity implements Serializable {
protected String displayName;
protected String jid;
protected String subscription;
- protected int systemAccount;
+ protected String systemAccount;
protected String photoUri;
protected String openPGPKey;
protected Presences presences = new Presences();
@@ -44,7 +44,7 @@ public class Contact extends AbstractEntity implements Serializable {
}
public Contact(String uuid, String account, String displayName, String jid,
- String subscription, String photoUri, int systemAccount,
+ String subscription, String photoUri, String systemAccount,
String pgpKey,String presences) {
this.uuid = uuid;
this.accountUuid = account;
@@ -96,7 +96,7 @@ public class Contact extends AbstractEntity implements Serializable {
cursor.getString(cursor.getColumnIndex(JID)),
cursor.getString(cursor.getColumnIndex(SUBSCRIPTION)),
cursor.getString(cursor.getColumnIndex(PHOTOURI)),
- cursor.getInt(cursor.getColumnIndex(SYSTEMACCOUNT)),
+ cursor.getString(cursor.getColumnIndex(SYSTEMACCOUNT)),
cursor.getString(cursor.getColumnIndex(OPENPGPKEY)),
cursor.getString(cursor.getColumnIndex(PRESENCES)));
}
@@ -109,7 +109,7 @@ public class Contact extends AbstractEntity implements Serializable {
return this.subscription;
}
- public void setSystemAccount(int account) {
+ public void setSystemAccount(String account) {
this.systemAccount = account;
}
@@ -161,4 +161,16 @@ public class Contact extends AbstractEntity implements Serializable {
public void setPresences(Presences pres) {
this.presences = pres;
}
+
+ public void setPhotoUri(String uri) {
+ this.photoUri = uri;
+ }
+
+ public void setDisplayName(String name) {
+ this.displayName = name;
+ }
+
+ public String getSystemAccount() {
+ return systemAccount;
+ }
}