using Gee; namespace Xmpp.Roster { public class Flag : XmppStreamFlag { public const string ID = "roster"; public static FlagIdentity IDENTITY = new FlagIdentity(NS_URI, ID); public HashMap roster_items = new HashMap(); public string? iq_id; public Collection 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; } } }