Clone.bjs
[gitlive] / RooRepo.vala
index b8c270a..1d34bc8 100644 (file)
@@ -5,7 +5,7 @@ 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;
@@ -23,11 +23,12 @@ public class RooRepo : Object
        }
        
        static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.         
-       static public  Gee.ArrayList<RooRepo>() {
+       public static  Gee.ArrayList<RooRepo> repos() {
                RooRepo.init();
                return RooRepo._repos;
        }
-       public RooRepo add(Json.Object t)
+       
+       static RooRepo add(Json.Object t)
        {
                var add = new RooRepo();
                add.id = t.get_string_member("id");
@@ -84,7 +85,7 @@ public class RooRepo : Object
                        // got a valid result...
  
                        for(var i = 0; i < rd.get_length(); i++) {
-                               _this.add(rd.get_object_element(i));
+                               RooRepo.add(rd.get_object_element(i));
                        }