[webp] Added start element function
[moonshot-ui.git] / src / moonshot-id.vala
1 public class TrustAnchor : Object
2 {
3   public string ca_cert {get; set; default = null;}
4   public string subject {get; set; default = null;}
5   public string subject_alt  {get; set; default = null;}
6   public string server_cert  {get; set; default = null;}
7 }
8
9 public struct Rule
10 {
11   public string pattern;
12   public string always_confirm;
13 }
14
15 public class IdCard : Object
16 {
17   public string display_name { get; set; default = null; }
18   
19   public string username { get; set; default = null; }
20   public string password { get; set; default = null; }
21
22   public string issuer { get; set; default = null; }
23   
24   public Rule[] rules {get; set; default = {};}
25
26   public TrustAnchor trust_anchor  { get; set; default = new TrustAnchor (); }
27   
28   public Gdk.Pixbuf pixbuf { get; set; default = null; }    
29   public string[] services { get; set; default = {}; }
30
31   //TODO: Set the getter and remove the setter/default
32   public string nai { get; set; default = null; }
33 }