X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RooTicket.vala;h=5658a3bf650da5a6d06d7fac6e61aaae9d8d4725;hp=d32ad47802fb93d3148a7abb989f65ddf103e591;hb=HEAD;hpb=4f094cc70311ace7119a5e8a9ba6f7b5d0166fe7 diff --git a/RooTicket.vala b/RooTicket.vala index d32ad478..5658a3bf 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -60,6 +60,7 @@ public class RooTicket : Object public Gee.ArrayList serverities; public Gee.ArrayList classifications; public Gee.ArrayList developers; + public string authuser_id; public string username = ""; // only available for singletonn. @@ -69,6 +70,7 @@ public class RooTicket : Object public string id; // not really important that they are numbers.. public string summary; public string description; + public string project_id; public string project_id_name; @@ -114,6 +116,7 @@ public class RooTicket : Object add.id = t.get_string_member("id"); add.summary = t.get_string_member("summary"); add.description = t.get_string_member("description"); + add.project_id = t.get_string_member("project_id"); add.project_id_name = t.get_string_member("project_id_name"); this.tickets.add(add); GLib.debug("ADD ticket %s : %s : %s", add.id, add.summary, add.project_id_name); @@ -130,6 +133,7 @@ public class RooTicket : Object t.id = "-1"; t.summary = ""; t.description = ""; + t.project_id = ""; t.project_id_name = ""; RooTicket.singleton().tickets.add(t); return t; @@ -314,6 +318,7 @@ public class RooTicket : Object rt.serverities = this.readJsonArray( rd.get_array_member("severity")); rt.classifications = this.readJsonArray( rd.get_array_member("classification")); rt.developers = this.readJsonArray( rd.get_array_member("developer")); + rt.authuser_id = rd.get_string_member("authuser_id");