From: Alan Knowles Date: Mon, 24 Dec 2018 07:28:44 +0000 (+0800) Subject: RooRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=35f4fe0805ae3ff7db5be4bfc77012acd7ddcdd8 RooRepo.vala --- diff --git a/RooRepo.vala b/RooRepo.vala index d7bf4f44..f75a0eac 100644 --- a/RooRepo.vala +++ b/RooRepo.vala @@ -5,14 +5,18 @@ static RooRepo _RooRepo ; public class RooRepo : Object { - const string roourl = "https://roojs.com/admin.php/Roo"; - + public string id; // not really important that they are numbers.. public string project_id; public string description; public string shortname; + // -- static below... + const string roourl = "https://roojs.com/admin.php/Roo"; + static Gee.ArrayList _repos; // only available for singletonn. + static int loadcount = 0; + static RooRepo init() { if (_RooRepo == null) { @@ -22,8 +26,7 @@ public class RooRepo : Object return _RooRepo; } - static Gee.ArrayList _repos; // only available for singletonn. - static int loadcount = 0; + public static Gee.ArrayList repos() { RooRepo.init(); return RooRepo._repos;