Subversion Repositories SmartDukaan

Rev

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

Rev 5037 Rev 5094
Line 61... Line 61...
61
	private long productId;
61
	private long productId;
62
	private boolean isMobile = false;
62
	private boolean isMobile = false;
63
	
63
	
64
	private Map<String, Double> discounts = null;
64
	private Map<String, Double> discounts = null;
65
	private Map<String, String> snippets;
65
	private Map<String, String> snippets;
-
 
66
	private static Map<Long, String> label = new HashMap<Long, String>();
-
 
67
	static{
-
 
68
		setRetargettingLabel();
-
 
69
	}
66
	
70
	
67
	public EntityController(){
71
	public EntityController(){
68
		super();
72
		super();
69
	}
73
	}
70
 
74
 
Line 286... Line 290...
286
        } catch (Exception e1) {
290
        } catch (Exception e1) {
287
            log.error("Unable to get items by catalog item id", e1);
291
            log.error("Unable to get items by catalog item id", e1);
288
        }
292
        }
289
        return new Gson().toJson(items);
293
        return new Gson().toJson(items);
290
    }
294
    }
-
 
295
    
-
 
296
    private static void setRetargettingLabel() {
-
 
297
    	label.put((long) 1002160, "6EIBCKjf1wMQ6Pua0wM"); //Samsung Galaxy Y S5360
-
 
298
    	label.put((long) 1002106, "JFGVCKCt8gMQ6Pua0wM"); //Sony Ericsson Xperia Neo V MT11i
-
 
299
    	label.put((long) 1003230, "ArAYCJiu8gMQ6Pua0wM"); //Micromax Funbook Tab P300
-
 
300
    	label.put((long) 1002151, "j0c_CJCv8gMQ6Pua0wM"); //HTC Explorer (Pico) A310e
-
 
301
    	label.put((long) 1000607, "7H3QCKDh8wMQ6Pua0wM"); //SanDisk MicroSD 8GB
-
 
302
    	label.put((long) 1003213, "QtGQCJji8wMQ6Pua0wM"); //Micromax SUPERFONE Gossip A78
-
 
303
    	label.put((long) 1002530, "0YNbCJDj8wMQ6Pua0wM"); //Samsung Champ Deluxe Duos C3312
-
 
304
    	label.put((long) 1003039, "pQUaCIjk8wMQ6Pua0wM"); //Samsung Star 3 Duos S5222
-
 
305
    	label.put((long) 1002575, "zcYTCIDl8wMQ6Pua0wM"); //Samsung Galaxy Y Duos S6102
-
 
306
    }
-
 
307
    
-
 
308
    public String getRetargettingLabel() {
-
 
309
    	return label.get(this.productId);
-
 
310
    }
291
}
311
}
292
312