Subversion Repositories SmartDukaan

Rev

Rev 12834 | Rev 13668 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12834 Rev 12835
Line 62... Line 62...
62
    }
62
    }
63
 
63
 
64
 
64
 
65
    public boolean updatePrice(String skuAtFlipkart, String sellingPrice) throws ClientProtocolException, IOException, JSONException{
65
    public boolean updatePrice(String skuAtFlipkart, String sellingPrice) throws ClientProtocolException, IOException, JSONException{
66
        
66
        
67
        if (Boolean.valueOf(UPDATE_PRICE_ON_FK)){
67
        if (!Boolean.valueOf(UPDATE_PRICE_ON_FK)){
68
            return true;
68
            return true;
69
        }
69
        }
70
 
70
 
71
        HttpPost post = new HttpPost("https://seller.flipkart.com/login");
71
        HttpPost post = new HttpPost("https://seller.flipkart.com/login");
72
        BufferedReader rd= null;
72
        BufferedReader rd= null;
Line 144... Line 144...
144
        for (int i = 0, size = jsonArray.length(); i < size; i++){
144
        for (int i = 0, size = jsonArray.length(); i < size; i++){
145
            JSONObject x = jsonArray.getJSONObject(i);
145
            JSONObject x = jsonArray.getJSONObject(i);
146
            listingPrice = x.get("listingPrice").toString();
146
            listingPrice = x.get("listingPrice").toString();
147
        }
147
        }
148
        logger.info("New listing price "+listingPrice);
148
        logger.info("New listing price "+listingPrice);
149
        System.out.println(Double.valueOf(sellingPrice));
-
 
150
        System.out.println(Double.valueOf(listingPrice));
-
 
151
        if (Double.valueOf(sellingPrice).equals(Double.valueOf(listingPrice))){
149
        if (Double.valueOf(sellingPrice).equals(Double.valueOf(listingPrice))){
152
            return true;
150
            return true;
153
        }
151
        }
154
        return false;
152
        return false;
155
    }
153
    }