Subversion Repositories SmartDukaan

Rev

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

Rev 12830 Rev 12832
Line 111... Line 111...
111
		String line;
111
		String line;
112
		boolean updated = false;
112
		boolean updated = false;
113
		try {
113
		try {
114
			while ((line = rd.readLine()) != null) {
114
			while ((line = rd.readLine()) != null) {
115
				logger.info("Response " + line);
115
				logger.info("Response " + line);
116
				if(line.equalsIgnoreCase("{\"status\":\"success\"}")){
116
				if(line.equalsIgnoreCase("{\"status\":\"succes\"}")){
117
					updated = true;
117
					updated = true;
118
				}
118
				}
119
			}
119
			}
120
		} catch (IOException e2) {
120
		} catch (IOException e2) {
121
			e2.printStackTrace();
121
			e2.printStackTrace();
Line 126... Line 126...
126
		"SKU at Flipkart : " +this.fksku +"\n"+
126
		"SKU at Flipkart : " +this.fksku +"\n"+
127
		"Updated Price : " +this.price;
127
		"Updated Price : " +this.price;
128
		if(!updated){
128
		if(!updated){
129
		    FlipkartPricingPannel fkPricingPannel = new FlipkartPricingPannel();
129
		    FlipkartPricingPannel fkPricingPannel = new FlipkartPricingPannel();
130
		    try {
130
		    try {
131
                updated = fkPricingPannel.updatePrice(this.fksku, String.valueOf(this.price));
131
		        updated = fkPricingPannel.updatePrice(this.fksku, String.valueOf(this.price));
132
                logger.info("Value of updated" +updated);
132
                logger.info("Value of updated" +updated);
133
            } catch (Exception e) {
133
            } catch (Exception e) {
134
                logger.info("Exception" + e);
134
                logger.info("Exception" + e);
135
            }
135
            }
136
		}
136
		}