RooRepo.vala
authorAlan Knowles <alan@roojs.com>
Mon, 24 Dec 2018 07:28:44 +0000 (15:28 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 24 Dec 2018 07:28:44 +0000 (15:28 +0800)
RooRepo.vala

index d7bf4f4..f75a0ea 100644 (file)
@@ -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<RooRepo> _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<RooRepo> _repos; // only available for singletonn.         
-       static int loadcount = 0;
+
        public static  Gee.ArrayList<RooRepo> repos() {
                RooRepo.init();
                return RooRepo._repos;