diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-07 02:57:36 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-07 02:57:36 +0100 |
commit | cda1c2c3a12b4c18f13771dd4b58aab6e465176b (patch) | |
tree | 9f246adce16c0951f64f4233c4c0ad8d00d7c8e1 /src/de/gultsch/chat/entities | |
parent | aa42eb544a1ebf99dc52d71c917b899d1fce628d (diff) |
refresh contact list
Diffstat (limited to 'src/de/gultsch/chat/entities')
-rw-r--r-- | src/de/gultsch/chat/entities/Contact.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/de/gultsch/chat/entities/Contact.java b/src/de/gultsch/chat/entities/Contact.java index 47549b22e..3478eac70 100644 --- a/src/de/gultsch/chat/entities/Contact.java +++ b/src/de/gultsch/chat/entities/Contact.java @@ -17,7 +17,7 @@ public class Contact extends AbstractEntity implements Serializable { public static final String SYSTEMACCOUNT = "systemaccount"; public static final String PHOTOURI = "photouri"; public static final String OPENPGPKEY = "pgpkey"; - public static final String LASTONLINEPRESENCE = "presence"; + public static final String LASTPRESENCE = "presence"; public static final String ACCOUNT = "accountUuid"; protected String accountUuid; @@ -27,7 +27,7 @@ public class Contact extends AbstractEntity implements Serializable { protected int systemAccount; protected String photoUri; protected String openPGPKey; - protected long lastOnlinePresence; + protected long lastPresence; protected Account account; @@ -52,7 +52,7 @@ public class Contact extends AbstractEntity implements Serializable { this.photoUri = photoUri; this.systemAccount = systemAccount; this.openPGPKey = pgpKey; - this.lastOnlinePresence = lastseen; + this.lastPresence = lastseen; } public String getDisplayName() { @@ -82,7 +82,7 @@ public class Contact extends AbstractEntity implements Serializable { values.put(SYSTEMACCOUNT, systemAccount); values.put(PHOTOURI,photoUri); values.put(OPENPGPKEY,openPGPKey); - values.put(LASTONLINEPRESENCE,lastOnlinePresence); + values.put(LASTPRESENCE,lastPresence); return values; } @@ -95,7 +95,7 @@ public class Contact extends AbstractEntity implements Serializable { cursor.getString(cursor.getColumnIndex(PHOTOURI)), cursor.getInt(cursor.getColumnIndex(SYSTEMACCOUNT)), cursor.getString(cursor.getColumnIndex(OPENPGPKEY)), - cursor.getLong(cursor.getColumnIndex(LASTONLINEPRESENCE)) + cursor.getLong(cursor.getColumnIndex(LASTPRESENCE)) ); } |