X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RooTicket.vala;h=5658a3bf650da5a6d06d7fac6e61aaae9d8d4725;hp=083762b1cc2ca170ef6a1ed30e29625073f0216e;hb=HEAD;hpb=7787e7058c952459a07f64edaa20d5e7778dc1fa diff --git a/RooTicket.vala b/RooTicket.vala index 083762b1..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"); @@ -408,6 +413,7 @@ public class RooTicket : Object string project_id, string milestone_id, string priority_id, + string severity_id, string classification_id, string developer_id, string summary, @@ -420,6 +426,7 @@ public class RooTicket : Object table.insert("project_id", project_id); table.insert("milestone_id", milestone_id); table.insert("priority_id", priority_id); + table.insert("severity_id", classification_id); table.insert("classification_id", classification_id); table.insert("developer_id", developer_id); table.insert("summary", summary);