aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/roster/flag.vala
blob: 43d185d992b61a78b05ea64b531405c2cd7e96ec (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
24
25
26
27
using Gee;

using Xmpp.Core;

namespace Xmpp.Roster {

public class Flag : XmppStreamFlag {
    public const string ID = "roster";
    public static FlagIdentity<Flag> IDENTITY = new FlagIdentity<Flag>(NS_URI, ID);

    public HashMap<string, Item> roster_items = new HashMap<string, Item>();

    public string? iq_id;

    public Collection<Item> get_roster() {
        return roster_items.values;
    }

    public Item? get_item(string jid) {
        return roster_items[jid];
    }

    public override string get_ns() { return NS_URI; }
    public override string get_id() { return IDENTITY.id; }
}

}