static Gee.ArrayList<RooProject> projects;
-
+ static public RooProject addProject(Json.Object t)
+ {
+
+ RooProject.singleton(); // init...
+
+ var add = new RooProject();
+ add.id = t.get_string_member("id");
+ add.name = t.get_string_member("name");
+ add.type = t.get_string_member("type");
+ add.code = t.get_string_member("code");
+ this.projects.add(add);
+ GLib.debug("ADD project %s : %s : %s", add.id, add.code, add.name);
+ return add;
+ }
}