| 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)) {
|