| Line 1... |
Line 1... |
| 1 |
package in.shop2020.support.utils;
|
1 |
package in.shop2020.support.utils;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
3 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
| - |
|
4 |
import in.shop2020.model.v1.catalog.CatalogServiceException;
|
| 4 |
import in.shop2020.model.v1.catalog.Item;
|
5 |
import in.shop2020.model.v1.catalog.Item;
|
| 5 |
import in.shop2020.support.controllers.SnapdealListController;
|
6 |
import in.shop2020.support.controllers.SnapdealListController;
|
| 6 |
import in.shop2020.thrift.clients.CatalogClient;
|
7 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 7 |
import in.shop2020.utils.GmailUtils;
|
8 |
import in.shop2020.utils.GmailUtils;
|
| 8 |
|
9 |
|
| Line 49... |
Line 50... |
| 49 |
this.item = item;
|
50 |
this.item = item;
|
| 50 |
this.timestamp = timestamp;
|
51 |
this.timestamp = timestamp;
|
| 51 |
}
|
52 |
}
|
| 52 |
public UpdateSDPricingUsingPanel() {
|
53 |
public UpdateSDPricingUsingPanel() {
|
| 53 |
}
|
54 |
}
|
| 54 |
public static void main(String... args) throws ClientProtocolException, IOException{
|
55 |
public static void main(String... args) throws ClientProtocolException, IOException, TTransportException, CatalogServiceException, TException{
|
| - |
|
56 |
Item item = new CatalogClient().getClient().getItem(2231);
|
| 55 |
UpdateSDPricingUsingPanel UDSI = new UpdateSDPricingUsingPanel();
|
57 |
UpdateSDPricingUsingPanel updatePriceOnSnapdeal = new UpdateSDPricingUsingPanel(22500f,"1108903",item,System.currentTimeMillis());
|
| - |
|
58 |
logger.info("Calling Thread to update price at snapdeal");
|
| 56 |
//UDSI.updatePricing(10131f,"SDL668125910","");
|
59 |
updatePriceOnSnapdeal.start();
|
| 57 |
|
60 |
|
| 58 |
}
|
61 |
}
|
| 59 |
int updatePricing(Float price,String supc,Item item,Long timestamp) throws ClientProtocolException, IOException{
|
62 |
int updatePricing(Float price,String supc,Item item,Long timestamp) throws ClientProtocolException, IOException{
|
| 60 |
logger.info("Calling Update Snapdeal Price Constructor --" + " Price :" +price + " Supc :"+supc +" Item ID:" +item.getId());
|
63 |
logger.info("Calling Update Snapdeal Price Constructor --" + " Price :" +price + " Supc :"+supc +" Item ID:" +item.getId());
|
| 61 |
HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/update");
|
64 |
HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/update");
|