コード例 #1
0
 public void setProjects() {
   if (currentUser != null) {
     cnt++;
     GetSubscribedProjectListServiceAsync service =
         GetSubscribedProjectListService.Util.getInstance();
     service.getSubscribedProjectList(currentUser.getUserId(), projectListCallback);
   }
 }
コード例 #2
0
 public void onSuccess(ArrayList<ProjectItem> items) {
   ProjectItems projectItems = new ProjectItems();
   projectItems.setItems(items);
   currentUser.setProjectItems(projectItems);
   userCtx.setCurrentUser(currentUser);
   GetPreferredProjectServiceAsync service = GetPreferredProjectService.Util.getInstance();
   service.getPreferredProject(currentUser.getUserId(), preferredProjectCallback);
 }