| Line 58... |
Line 58... |
| 58 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
58 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 59 |
"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
59 |
"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 60 |
*/
|
60 |
*/
|
| 61 |
Map<String,Long> itemInventoryMap = FetchInventoryAtFlipkart();
|
61 |
Map<String,Long> itemInventoryMap = FetchInventoryAtFlipkart();
|
| 62 |
in.shop2020.model.v1.catalog.CatalogService.Client catalogClient = new CatalogClient().getClient();
|
62 |
in.shop2020.model.v1.catalog.CatalogService.Client catalogClient = new CatalogClient().getClient();
|
| 63 |
List<FlipkartItem> flipkartItems = null;
|
- |
|
| 64 |
//catalogClient.getAllFlipkartItems();
|
- |
|
| 65 |
List<Item> aliveItems;
|
- |
|
| 66 |
try{
|
- |
|
| 67 |
aliveItems = catalogClient.getAllAliveItems();
|
63 |
List<FlipkartItem> flipkartItems = catalogClient.getAllFlipkartItems();
|
| 68 |
}
|
- |
|
| 69 |
catch(TTransportException e){
|
- |
|
| 70 |
catalogClient = new CatalogClient().getClient();
|
- |
|
| 71 |
aliveItems = catalogClient.getAllAliveItems();
|
64 |
List<Item> aliveItems = catalogClient.getAllAliveItems();
|
| 72 |
}
|
- |
|
| 73 |
Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
|
65 |
Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
|
| 74 |
Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
|
66 |
Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
|
| 75 |
for(Item item:aliveItems){
|
67 |
for(Item item:aliveItems){
|
| 76 |
aliveItemsMap.put(item.getId(),item);
|
68 |
aliveItemsMap.put(item.getId(),item);
|
| 77 |
}
|
69 |
}
|