summaryrefslogtreecommitdiffstats
path: root/src/gui/Contact.vala
blob: 2eb40ae16fb6cd5c7c5e9bad960779c45d460593 (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
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;}
}