Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1527 Rev 1544
Line 47... Line 47...
47
	 */
47
	 */
48
	public static Image parserImageJSON(JSONObject imageJson) {
48
	public static Image parserImageJSON(JSONObject imageJson) {
Line 49... Line 49...
49
 
49
 
50
		Image image = new Image();
50
		Image image = new Image();
51
		Config config = new Config();
51
		Config config = new Config();
52
		String urlImages = config.getUrl("urlImages");
52
		String urlImages = config.getUrl("images");
53
		String idImage = imageJson.get("id_image").isString().stringValue();
53
		String idImage = imageJson.get("id_image").isString().stringValue();
54
		image.setIdImage(idImage);
54
		image.setIdImage(idImage);
55
		image.setUrlFormat(urlImages + getIdAvecPadding(idImage) + "%s%.jpg");
55
		image.setUrlFormat(urlImages + getIdAvecPadding(idImage) + "%s%.jpg");
56
		image.setUrl(urlImages + getIdAvecPadding(idImage) + "CRS.jpg");
56
		image.setUrl(urlImages + getIdAvecPadding(idImage) + "CRS.jpg");