summaryrefslogtreecommitdiffstats
path: root/src/gui/Contact.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Contact.vala')
-rw-r--r--src/gui/Contact.vala24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/Contact.vala b/src/gui/Contact.vala
new file mode 100644
index 0000000..2eb40ae
--- /dev/null
+++ b/src/gui/Contact.vala
@@ -0,0 +1,24 @@
+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<string, Resource> resources {get; private set;}
+}