summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarun Gupta <tarun1995gupta@gmail.com>2015-06-28 14:32:23 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-07-06 11:38:12 (GMT)
commit665fc753249c848637adb7f5d44a68b77d4c642e (patch)
tree6ec90a1a2ab534060b1e49b3d791d748f3bf140a /src/com/isode/stroke/disco
parent2b140e4789a654c68d1b534458be74c554e132d9 (diff)
downloadstroke-665fc753249c848637adb7f5d44a68b77d4c642e.zip
stroke-665fc753249c848637adb7f5d44a68b77d4c642e.tar.bz2
Add ChatStateNotifier.
Adds ChatStateNotifier, DummyEntityCapsProvider. License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details. Test-Information: Test added for Chate State Notifier, which passes. Change-Id: Ie596d9c226526ab5ace334b7926389b61ca5540a
Diffstat (limited to 'src/com/isode/stroke/disco')
-rw-r--r--src/com/isode/stroke/disco/DummyEntityCapsProvider.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/com/isode/stroke/disco/DummyEntityCapsProvider.java b/src/com/isode/stroke/disco/DummyEntityCapsProvider.java
new file mode 100644
index 0000000..708de7c
--- /dev/null
+++ b/src/com/isode/stroke/disco/DummyEntityCapsProvider.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2010 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+/*
+ * Copyright (c) 2015 Tarun Gupta.
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+package com.isode.stroke.disco;
+
+import com.isode.stroke.disco.EntityCapsProvider;
+import com.isode.stroke.jid.JID;
+import com.isode.stroke.elements.DiscoInfo;
+import java.util.Map;
+import java.util.HashMap;
+
+public class DummyEntityCapsProvider extends EntityCapsProvider {
+
+ public Map<JID, DiscoInfo> caps = new HashMap<JID, DiscoInfo>();
+
+ public DummyEntityCapsProvider() {
+
+ }
+
+ public DiscoInfo getCaps(JID jid) {
+ if(caps.containsKey(jid)) {
+ return caps.get(jid);
+ }
+ return null;
+ }
+} \ No newline at end of file