aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities
diff options
context:
space:
mode:
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;
+ }
}