X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RooTicket.vala;h=8588e0a90713a999047cd477f608ec846262481a;hp=3b6e486c3a0f00b27cb8cf832ca65bd251fda905;hb=7eda32e809de618241bc113ec0b717a8d8c2b735;hpb=3a9aa91b68290762502d8551c51c074c075d1e0a diff --git a/RooTicket.vala b/RooTicket.vala index 3b6e486c..8588e0a9 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -52,12 +52,12 @@ public class RooTicket : Object { public enum Who { - ANY = "anybody", - ME = "me" + ANYBODY, + ME } public enum Status { - ANY = "all", - ACTIVE = "active" + ANY, + ACTIVE } //const string baseurl = "https://roojs.com/admin.php/Ro/mtrack_ticket"; @@ -278,9 +278,9 @@ public class RooTicket : Object var table = new GLib.HashTable(str_hash, str_equal); - table.insert("_developer", (string)who); + table.insert("_developer", who.to_string().down()); - table.insert("query[viewtype]", (string)status); + table.insert("query[viewtype]", status.to_string().down()); table.insert("limit","999"); table.insert("sort","summary");