package net.etalia.client.domain;

public class Media {

	private String id;
	private String description;
	private String url;
	private MediaType type;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public MediaType getType() {
		return type;
	}
	public void setType(MediaType type) {
		this.type = type;
	}

	public enum MediaType {
		_image(),
		_video();
		private MediaType() {
		}
	}

}

package net.etalia.client.domain;

public class Media {

	private String id;
	private String description;
	private String url;
	private MediaType type;
	private Long width;
	private Long height;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public MediaType getType() {
		return type;
	}
	public void setType(MediaType type) {
		this.type = type;
	}
	public Long getWidth() {
		return width;
	}
	public void setWidth(Long width) {
		this.width = width;
	}
	public Long getHeight() {
		return height;
	}
	public void setHeight(Long height) {
		this.height = height;
	}

	public enum MediaType {
		_image(),
		_video();
		private MediaType() {
		}
	}

}

Improve Media