blob: 1db1e62f319c2efe0d297ceb1d294e0424a607b6 (
plain)
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
26
27
28
29
30
31
32
33
34
|
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<string> groups;
public Gee.HashMap<string, Resource> resources {get; private set;}
public string display_string {
get {
if (name != null)
return name;
else
return jid;
}
}
}
|