Package com.jbidwatcher.auction

Examples of com.jbidwatcher.auction.Seller


  public AuctionSortable(AuctionEntry ae) { entry = ae; }


  /** Utility methods **/
  private Seller getSeller(String sellerId) {
    Seller seller;
    if(sellers.containsKey(sellerId)) {
      seller = sellers.get(sellerId);
    } else {
      seller = Seller.findFirstBy("id", sellerId);
    }
View Full Code Here


    Currency snipe = entry.getSnipeAmount();
    return Currency.convertToUSD(entry.getCurrentUSPrice(), entry.getCurrentPrice(), snipe);
  }

  public int getSellerPositiveFeedback() {
    Seller seller = getSeller(entry.getSellerId());

    try {
      String feedbackPercent = seller.getPositivePercentage();
      if(feedbackPercent != null) feedbackPercent = feedbackPercent.replace("%", "");
      return safeConvert(feedbackPercent);
    } catch(Exception e) {
      return Zero;
    }
View Full Code Here

    String s = entry.getComment();
    return (s==null?"":s);
  }

  public int getSellerFeedback() {
    Seller seller = getSeller(entry.getSellerId());

    return seller.getFeedback();
  }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.auction.Seller

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.