From aa42eb544a1ebf99dc52d71c917b899d1fce628d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 5 Feb 2014 22:33:39 +0100 Subject: basic muc support. reworked contact list stuff --- src/de/gultsch/chat/entities/Contact.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/de/gultsch/chat/entities/Contact.java') diff --git a/src/de/gultsch/chat/entities/Contact.java b/src/de/gultsch/chat/entities/Contact.java index f235fb4d..47549b22 100644 --- a/src/de/gultsch/chat/entities/Contact.java +++ b/src/de/gultsch/chat/entities/Contact.java @@ -28,6 +28,9 @@ public class Contact extends AbstractEntity implements Serializable { protected String photoUri; protected String openPGPKey; protected long lastOnlinePresence; + + + protected Account account; public Contact(Account account, String displayName, String jid, String photoUri) { if (account == null) { @@ -95,4 +98,25 @@ public class Contact extends AbstractEntity implements Serializable { cursor.getLong(cursor.getColumnIndex(LASTONLINEPRESENCE)) ); } + + public void setSubscription(String subscription) { + this.subscription = subscription; + } + + public void setSystemAccount(int account) { + this.systemAccount = account; + } + + public void setAccount(Account account) { + this.account = account; + this.accountUuid = account.getUuid(); + } + + public Account getAccount() { + return this.account; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } } -- cgit v1.2.3