Package ca.wowapi.entities

Examples of ca.wowapi.entities.Auction


      for (int i = 0; i < FACTIONS.length; i++) {
        JSONArray jAuctionList = jsonobject.getJSONObject(FACTIONS[i]).getJSONArray("auctions");

        ArrayList<Auction> auctionList = new ArrayList<Auction>();
        for (int j = 0; j < jAuctionList.length(); j++) {
          Auction auctionItem = new Auction();
          auctionItem.setOwner(jAuctionList.getJSONObject(j).getString("owner"));
          auctionItem.setBid(jAuctionList.getJSONObject(j).getLong("bid"));
          auctionItem.setId(jAuctionList.getJSONObject(j).getLong("auc"));
          auctionItem.setItem(jAuctionList.getJSONObject(j).getInt("item"));
          auctionItem.setBuyout(jAuctionList.getJSONObject(j).getLong("buyout"));
          auctionItem.setQuantity(jAuctionList.getJSONObject(j).getInt("quantity"));
          auctionItem.setTimeLeft(jAuctionList.getJSONObject(j).getString("timeLeft"));
          auctionList.add(auctionItem);
        }
        auctionData.put(FACTIONS[i], auctionList);
      }
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of ca.wowapi.entities.Auction

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.