anotherim-desktop/libdino/src/service/entity_capabilities_storage.vala

23 lines
483 B
Vala
Raw Normal View History

2017-03-02 14:37:32 +00:00
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);
}
}
}