diff options
Diffstat (limited to 'libdino/src/service')
-rw-r--r-- | libdino/src/service/database.vala | 4 | ||||
-rw-r--r-- | libdino/src/service/entity_capabilities_storage.vala | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 333c599b..b414b943 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -276,7 +276,7 @@ public class Database : Qlite.Database { return ret; } - public void add_entity_features(string entity, ArrayList<string> features) { + public void add_entity_features(string entity, Gee.List<string> features) { foreach (string feature in features) { entity_feature.insert() .value(entity_feature.entity, entity) @@ -285,7 +285,7 @@ public class Database : Qlite.Database { } } - public ArrayList<string> get_entity_features(string entity) { + public Gee.List<string> get_entity_features(string entity) { ArrayList<string> ret = new ArrayList<string>(); foreach (Row row in entity_feature.select({entity_feature.feature}).with(entity_feature.entity, "=", entity)) { ret.add(row[entity_feature.feature]); diff --git a/libdino/src/service/entity_capabilities_storage.vala b/libdino/src/service/entity_capabilities_storage.vala index 9774739a..910ce48d 100644 --- a/libdino/src/service/entity_capabilities_storage.vala +++ b/libdino/src/service/entity_capabilities_storage.vala @@ -12,12 +12,12 @@ public class EntityCapabilitiesStorage : Xep.EntityCapabilities.Storage, Object this.db = db; } - public void store_features(string entity, ArrayList<string> features) { + public void store_features(string entity, Gee.List<string> features) { db.add_entity_features(entity, features); } - public ArrayList<string> get_features(string entitiy) { + public Gee.List<string> get_features(string entitiy) { return db.get_entity_features(entitiy); } } -}
\ No newline at end of file +} |