Skip to content
Snippets Groups Projects
Commit 1aab8aab authored by Piotr Gawron's avatar Piotr Gawron
Browse files

additional data in the rest api

parent 8304918f
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -33,6 +33,8 @@ public class ModelMetaData implements Serializable {
*/
private String name;
private Integer idObject;
/**
* Size in pixels of the single square tile (small image used for graphical
* representation).
......@@ -84,6 +86,7 @@ public class ModelMetaData implements Serializable {
public ModelMetaData(ModelData model) {
this.setName(model.getName());
this.setIdObject(model.getId());
this.setMinZoom(Configuration.MIN_ZOOM_LEVEL);
this.setMaxZoom(this.getMinZoom() + model.getZoomLevels());
......@@ -308,10 +311,27 @@ public class ModelMetaData implements Serializable {
}
/**
* @param layouts the layouts to set
* @param layouts
* the layouts to set
* @see #layouts
*/
public void setLayouts(List<LayoutView> layouts) {
this.layouts = layouts;
}
/**
* @return the idObject
* @see #idObject
*/
public Integer getIdObject() {
return idObject;
}
/**
* @param idObject the idObject to set
* @see #idObject
*/
public void setIdObject(Integer idObject) {
this.idObject = idObject;
}
}
......@@ -28,6 +28,8 @@ public class ProjectMetaData implements Serializable {
* Version of the project.
*/
private String version;
private Integer idObject;
/**
* Name of the project.
......@@ -71,6 +73,7 @@ public class ProjectMetaData implements Serializable {
this.setName(project.getName());
this.setProjectId(project.getProjectId());
this.setIdObject(project.getId());
if (model != null) {
this.setOverviewImageViews(factory.createList(model.getOverviewImages()));
......@@ -215,4 +218,20 @@ public class ProjectMetaData implements Serializable {
this.map = map;
}
/**
* @return the idObject
* @see #idObject
*/
public Integer getIdObject() {
return idObject;
}
/**
* @param idObject the idObject to set
* @see #idObject
*/
public void setIdObject(Integer idObject) {
this.idObject = idObject;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment