Subversion Repositories SmartDukaan

Rev

Rev 4603 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4603 Rev 5769
Line 1... Line 1...
1
package in.shop2020.hotspot.dashbaord.server;
1
package in.shop2020.hotspot.dashbaord.server;
2
 
2
 
-
 
3
import in.shop2020.logistics.PickupStore;
3
import in.shop2020.logistics.Provider;
4
import in.shop2020.logistics.Provider;
4
import in.shop2020.logistics.LogisticsService.Client;
5
import in.shop2020.logistics.LogisticsService.Client;
5
import in.shop2020.thrift.clients.LogisticsClient;
6
import in.shop2020.thrift.clients.LogisticsClient;
6
 
7
 
7
import java.util.HashMap;
8
import java.util.HashMap;
Line 23... Line 24...
23
			e.printStackTrace();
24
			e.printStackTrace();
24
		}
25
		}
25
		
26
		
26
		return providerMap;
27
		return providerMap;
27
	}
28
	}
-
 
29
	
-
 
30
	public static Map<Long, String> getAllStores(){
-
 
31
		Map<Long, String> storeMap = new HashMap<Long, String>();
-
 
32
		List<PickupStore> stores = null;
-
 
33
		LogisticsClient lsc;
-
 
34
		try {
-
 
35
			lsc = new LogisticsClient();
-
 
36
			Client client = lsc.getClient();
-
 
37
			stores = client.getAllPickupStores();
-
 
38
			for(PickupStore store: stores)
-
 
39
				storeMap.put(store.getId(), store.getHotspotId() + " " + store.getName());
-
 
40
		} catch (Exception e) {
-
 
41
			e.printStackTrace();
-
 
42
		}
-
 
43
		
-
 
44
		return storeMap;
-
 
45
	}
28
}
46
}