Package com.changestuffs.kantor.shared.dto

Examples of com.changestuffs.kantor.shared.dto.SellDto


        GWT.log("Error doing action", caught);
      }

      @Override
      public void onSuccess(AddSellResult result) {
        SellDto dto = new SellDto();
        dto.setBuyBadge(addSell.getBuyBadge());
        dto.setSellBadge(addSell.getSellBadge());
        dto.setCity(addSell.getCity());
        dto.setCommission(addSell.getCommission());
        dto.setCountry(addSell.getCountry());
        dto.setEmail(addSell.getEmail());
        dto.setRate(result.getRate());
        List<SellDto> newItem = new ArrayList<SellDto>();
        newItem.add(dto);
        getView().addDataInTable(newItem);
      }
    });
View Full Code Here


    log.info("Returning "+sells);
    return dtos;
  }
 
  private SellDto sellToDto(Sell sell) {
    SellDto dto = new SellDto();
    dto.setBuyBadge(sell.getBuyBadge());
    dto.setCity(sell.getCity());
    dto.setCommission(sell.getCommission());
    dto.setCountry(sell.getCountry());
    dto.setEmail(sell.getEmail());
    dto.setSellBadge(sell.getSellBadge());
    try {
      dto.setRate(getRate(dto.getSellBadge(), dto.getBuyBadge()));
    } catch (IOException e) {
      log.log(Level.WARNING, "Error connecting with currency converter", e);
    }
   
    return dto;
View Full Code Here

TOP

Related Classes of com.changestuffs.kantor.shared.dto.SellDto

Copyright © 2018 www.massapicom. 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.