public string shortname;
- static init()
+ static RooRepo init()
{
if (_RooRepo == null) {
_RooRepo = new RooRepo();
RooRepo.load();
}
+ return _RooRepo;
}
static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.
RooRepo.init();
return RooRepo._repos;
}
-
+ public RooRepo add(Json.Object t)
+ {
+ var add = new RooRepo();
+ add.id = t.get_string_member("id");
+ add.shortname = t.get_string_member("shortname");
+ add.description = t.get_string_member("description");
+ add.project_id = t.get_string_member("project_id");
+ RooRepo._repos.add(add);
+ GLib.debug("ADD project %s : %s : %s", add.id, add.shortname, add.project_id);
+ return add;
+ }
+
+
+
}