From 4594692c656bbd34bbde5e8fa542222c52ecc050 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 17:18:36 +0800 Subject: [PATCH] RooTicket.vala --- RooTicket.vala | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/RooTicket.vala b/RooTicket.vala index 89ee5aac..dca8215f 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -4,16 +4,31 @@ code to fetch ticket info... */ +static RooTicket _RooTicket; class RooTicket : Object { - - - public int id; + + + public static RooTicket singleton() + { + if (_RooTicket == null) { + _RooTicket = new RooTicket(); + } + return _RooTicket; + } public + public int id; + public string summary; + public string description; + public string project_id_name; + static public void loadTickets() + { + + "https://roojs.com/admin.php/Roo/mtrack_ticket.php" //query[viewtype]=active //developer_id=494 -- 2.39.2