blob: 2e93911eca8e5bdcd6a1e099c9158bc3bf6dced8 (
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
|
using Gee;
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<Jid, Item> roster_items = new HashMap<Jid, Item>();
public string? iq_id;
public Collection<Item> get_roster() {
return roster_items.values;
}
public Item? get_item(Jid jid) {
return roster_items[jid];
}
public override string get_ns() { return NS_URI; }
public override string get_id() { return IDENTITY.id; }
}
}
|