aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/Presences.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-11 21:53:25 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-11 21:53:25 +0200
commitbb9045267393b2a7765d7c121b58c5e7043b525e (patch)
treea6441672710b78e3041ece15b60481257466b9fa /src/eu/siacs/conversations/entities/Presences.java
parent95f1a3d57d6f4a35d4579cf93d24a7621f39cf07 (diff)
groundwork for offline otr messages
Diffstat (limited to 'src/eu/siacs/conversations/entities/Presences.java')
-rw-r--r--src/eu/siacs/conversations/entities/Presences.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Presences.java b/src/eu/siacs/conversations/entities/Presences.java
index fd8af573..77891648 100644
--- a/src/eu/siacs/conversations/entities/Presences.java
+++ b/src/eu/siacs/conversations/entities/Presences.java
@@ -62,4 +62,14 @@ public class Presences {
public int size() {
return presences.size();
}
+
+ public String[] asStringArray() {
+ final String[] presencesArray = new String[presences.size()];
+ presences.keySet().toArray(presencesArray);
+ return presencesArray;
+ }
+
+ public boolean has(String presence) {
+ return presences.containsKey(presence);
+ }
}