0ce28c0b0d
Thanks `codespell`!
24 lines
480 B
Vala
24 lines
480 B
Vala
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, Gee.List<string> features) {
|
|
db.add_entity_features(entity, features);
|
|
}
|
|
|
|
public Gee.List<string> get_features(string entity) {
|
|
return db.get_entity_features(entity);
|
|
}
|
|
}
|
|
}
|