Examples of HomeDTO


Examples of net.cloudcodex.shared.dto.home.HomeDTO

     
      @Override
      public void onSuccess(Result<HomeDTO> result) {

        System.err.println(result.hasErrors());
        final HomeDTO home = result.getData();
       
        System.err.println(home.getNickname() + " : ");
        for(CharacterSummaryDTO character : home.getCharacters()) {
         
          // synchronous call
          System.err.println("\n----------------\n" + character.getName() + " : ");
          final Result<List<SceneDTO>> result2 =
            campaignRpc.getMessages(character.getCampaign().getId(), character.getId(), null, null);
View Full Code Here

Examples of net.cloudcodex.shared.dto.home.HomeDTO

  public void onStart() {
    service.getHome(new SuccessCallback<Result<HomeDTO>>() {
      @Override
      public void onSuccess(Result<HomeDTO> result) {
        HomeDTO home = null;
        if (result != null) {
          home = result.getData();
          if ((result.hasError(Errors.NOT_REGISTERED))
              || (home == null)) {
            eventBus.showRegisterPopup();
View Full Code Here

Examples of net.cloudcodex.shared.dto.home.HomeDTO

      context.addError(Errors.NOT_REGISTERED);
      return createResult(context, null);
    }
   
    // Build the Home DTO
    final HomeDTO home = new HomeDTO();
    home.setNickname(user.getNickname());
    home.setUserId(user.getKey().getId());
   
    /*
     * General notifications.
     */
    home.setNotifications(DTOUtil.mapNotification(
      homeService.getNotifications(context, null), NotificationType.GLOBAL));

    /*
     * User notifications.
     */
    home.setUserNotifications(DTOUtil.mapNotification(
      homeService.getNotifications(context, user.getKey()), NotificationType.USER));
   
    /*
     *  Characters
     */
    final List<CharacterSummary> characters = homeService.getCharacterSummaries(context);
    home.setCharacters(DTOUtil.mapCharacterSummary(characters));
   
    /*
     *  Campaigns
     */
    final List<CampaignSummary> campaigns = homeService.getCampaignSummaries(context);
    home.setCampaigns(DTOUtil.mapCampaignSummary(campaigns));
   
    return createResult(context, home);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.