public class Contact : Object { public enum Show { ONLINE, AWAY, CHAT, DND, XA, UNDEFINED } public enum Subscription { BOTH } public Contact(string jid0) { Object(jid: jid0); } 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 Subscription subscription {get; set;} public string name {get; set;} public Gee.HashMap resources {get; private set;} }