public class Contact : Object { public enum Show { ONLINE, AWAY, CHAT, DND, XA, UNDEFINED } public enum Subscription { BOTH } public Contact(string jid0, string? name0) { Object(jid: jid0, name: name0); } public class Resource : Object { public int priority {get; construct;} public Show show {get; construct;} public string status {get; construct;} } public string jid {get; construct;} public string? name {get; construct;} public Subscription subscription {get; set;} public Gee.TreeSet groups; public Gee.HashMap resources {get; private set;} public string display_string { get { if (name != null) return name; else return jid; } } }