aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/entity_capabilities_storage.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/entity_capabilities_storage.vala')
-rw-r--r--libdino/src/service/entity_capabilities_storage.vala23
1 files changed, 23 insertions, 0 deletions
diff --git a/libdino/src/service/entity_capabilities_storage.vala b/libdino/src/service/entity_capabilities_storage.vala
new file mode 100644
index 00000000..9774739a
--- /dev/null
+++ b/libdino/src/service/entity_capabilities_storage.vala
@@ -0,0 +1,23 @@
+using Gee;
+
+using Xmpp;
+
+namespace Dino {
+
+public class EntityCapabilitiesStorage : Xep.EntityCapabilities.Storage, Object {
+
+ private Database db;
+
+ public EntityCapabilitiesStorage(Database db) {
+ this.db = db;
+ }
+
+ public void store_features(string entity, ArrayList<string> features) {
+ db.add_entity_features(entity, features);
+ }
+
+ public ArrayList<string> get_features(string entitiy) {
+ return db.get_entity_features(entitiy);
+ }
+}
+} \ No newline at end of file