Subversion Repositories SmartDukaan

Rev

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

Rev 11001 Rev 11002
Line 130... Line 130...
130
				e1.printStackTrace();
130
				e1.printStackTrace();
131
			}
131
			}
132
		}catch (TException e) {
132
		}catch (TException e) {
133
			e.printStackTrace();
133
			e.printStackTrace();
134
		}
134
		}
135
		in.shop2020.model.v1.inventory.InventoryService.Client inventoryServiceClient = null;
-
 
136
		try {
135
		try {
137
			inventoryServiceClient = new InventoryClient().getClient();
-
 
138
		} catch (TTransportException e) {
-
 
139
			e.printStackTrace();
-
 
140
		}
-
 
141
		try {
-
 
142
			List<FlipkartInventorySnapshot> updatedFlipkartInventoryList = inventoryServiceClient.getFlipkartInventorySnapshot();
136
			List<FlipkartInventorySnapshot> updatedFlipkartInventoryList = new InventoryClient().getClient().getFlipkartInventorySnapshot();
143
			for(FlipkartInventorySnapshot updatedFlipkartInventory:updatedFlipkartInventoryList){
137
			for(FlipkartInventorySnapshot updatedFlipkartInventory:updatedFlipkartInventoryList){
144
				updatedFlipkartInventoryMap.put(updatedFlipkartInventory.getItem_id(),updatedFlipkartInventory.getAvailability());
138
				updatedFlipkartInventoryMap.put(updatedFlipkartInventory.getItem_id(),updatedFlipkartInventory.getAvailability());
145
			}
139
			}
146
		} catch (TException e) {
140
		} catch (TException e) {
147
			e.printStackTrace();
141
			e.printStackTrace();