aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/entity_capabilities_storage.vala
blob: 9774739adec5ba9e77ab430c29dd32f1fffa5f5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
    }
}
}