aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-20 16:26:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-20 16:26:09 +1200
commit91ca14dbf98b78ebf23a8527a16936eec8751b43 (patch)
tree8e22da7b1234e3e815cccacaf75085b8b9c885e9 /src/org
parent1b8e11a7fd277f4f07b84f3a35f752c68eefabb3 (diff)
downloadtraccar-server-91ca14dbf98b78ebf23a8527a16936eec8751b43.tar.gz
traccar-server-91ca14dbf98b78ebf23a8527a16936eec8751b43.tar.bz2
traccar-server-91ca14dbf98b78ebf23a8527a16936eec8751b43.zip
Update data model classes
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/model/Server.java18
-rw-r--r--src/org/traccar/model/User.java26
2 files changed, 37 insertions, 7 deletions
diff --git a/src/org/traccar/model/Server.java b/src/org/traccar/model/Server.java
index fd3ed8c6f..f5ad4887c 100644
--- a/src/org/traccar/model/Server.java
+++ b/src/org/traccar/model/Server.java
@@ -29,7 +29,23 @@ public class Server implements Factory {
private boolean registration;
public boolean getRegistration() { return registration; }
public void setRegistration(boolean registration) { this.registration = registration; }
-
+
+ private String map;
+ public String getMap() { return map; }
+ public void setMap(String map) { this.map = map; }
+
+ private String language;
+ public String getLanguage() { return language; }
+ public void setLanguage(String language) { this.language = language; }
+
+ private String distanceUnit;
+ public String getDistanceUnit() { return distanceUnit; }
+ public void setDistanceUnit(String distanceUnit) { this.distanceUnit = distanceUnit; }
+
+ private String speedUnit;
+ public String getSpeedUnit() { return speedUnit; }
+ public void setSpeedUnit(String speedUnit) { this.speedUnit = speedUnit; }
+
private double latitude;
public double getLatitude() { return latitude; }
public void setLatitude(double latitude) { this.latitude = latitude; }
diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java
index af9d353c5..382709da8 100644
--- a/src/org/traccar/model/User.java
+++ b/src/org/traccar/model/User.java
@@ -44,18 +44,32 @@ public class User implements Factory {
public void setAdmin(boolean admin) { this.admin = admin; }
private String map;
-
+ public String getMap() { return map; }
+ public void setMap(String map) { this.map = map; }
+
private String language;
-
+ public String getLanguage() { return language; }
+ public void setLanguage(String language) { this.language = language; }
+
private String distanceUnit;
-
+ public String getDistanceUnit() { return distanceUnit; }
+ public void setDistanceUnit(String distanceUnit) { this.distanceUnit = distanceUnit; }
+
private String speedUnit;
-
+ public String getSpeedUnit() { return speedUnit; }
+ public void setSpeedUnit(String speedUnit) { this.speedUnit = speedUnit; }
+
private double latitude;
-
+ public double getLatitude() { return latitude; }
+ public void setLatitude(double latitude) { this.latitude = latitude; }
+
private double longitude;
-
+ public double getLongitude() { return longitude; }
+ public void setLongitude(double longitude) { this.longitude = longitude; }
+
private int zoom;
+ public int getZoom() { return zoom; }
+ public void setZoom(int zoom) { this.zoom = zoom; }
private String password;
public String getPassword() { return password; }