Subversion Repositories SmartDukaan

Rev

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

Rev 23798 Rev 23806
Line 200... Line 200...
200
				FofoCatalogResponse ffdr = new FofoCatalogResponse();
200
				FofoCatalogResponse ffdr = new FofoCatalogResponse();
201
				ffdr.setCatalogId(doc.getInt("catalogId_i"));
201
				ffdr.setCatalogId(doc.getInt("catalogId_i"));
202
				ffdr.setImageUrl(doc.getString("imageUrl_s"));
202
				ffdr.setImageUrl(doc.getString("imageUrl_s"));
203
				ffdr.setTitle(doc.getString("title_s"));
203
				ffdr.setTitle(doc.getString("title_s"));
204
				ffdr.setBrand(doc.getString("brand_s"));
204
				ffdr.setBrand(doc.getString("brand_s"));
-
 
205
				ffdr.setHotDeals(doc.getBoolean("hot_deals_b"));
205
				for(int j=0; j< doc.getJSONArray("_childDocuments_").length(); j++) {
206
				for(int j=0; j< doc.getJSONArray("_childDocuments_").length(); j++) {
206
					JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
207
					JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
207
					int itemId = childItem.getInt("itemId_i");
208
					int itemId = childItem.getInt("itemId_i");
208
					float sellingPrice = (float)childItem.getDouble("sellingPrice_f");
209
					float sellingPrice = (float)childItem.getDouble("sellingPrice_f");
209
					if(fofoAvailabilityInfoMap.containsKey(itemId)) {
210
					if(fofoAvailabilityInfoMap.containsKey(itemId)) {