aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/session
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-21 17:53:50 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-21 17:53:58 -0700
commit388799edf2adc9c3070a83e72f074e523629574f (patch)
tree35809a83791475cece4f053457cafddc9d226b71 /src/main/java/org/traccar/session
parentd5b1385596f79da2514ea7cccf27e9bdeebcacae (diff)
downloadtrackermap-server-388799edf2adc9c3070a83e72f074e523629574f.tar.gz
trackermap-server-388799edf2adc9c3070a83e72f074e523629574f.tar.bz2
trackermap-server-388799edf2adc9c3070a83e72f074e523629574f.zip
Refactor motion handling
Diffstat (limited to 'src/main/java/org/traccar/session')
-rw-r--r--src/main/java/org/traccar/session/DeviceState.java26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/main/java/org/traccar/session/DeviceState.java b/src/main/java/org/traccar/session/DeviceState.java
index f67b906c4..7bf2a62ac 100644
--- a/src/main/java/org/traccar/session/DeviceState.java
+++ b/src/main/java/org/traccar/session/DeviceState.java
@@ -16,30 +16,38 @@
*/
package org.traccar.session;
-import org.traccar.model.Position;
-
import java.util.Date;
public class DeviceState {
- private Boolean motionState;
+ private boolean motionState;
public void setMotionState(boolean motionState) {
this.motionState = motionState;
}
- public Boolean getMotionState() {
+ public boolean getMotionState() {
return motionState;
}
- private Position motionPosition;
+ private Date motionTime;
+
+ public Date getMotionTime() {
+ return motionTime;
+ }
+
+ public void setMotionTime(Date motionTime) {
+ this.motionTime = motionTime;
+ }
+
+ private double motionDistance;
- public void setMotionPosition(Position motionPosition) {
- this.motionPosition = motionPosition;
+ public double getMotionDistance() {
+ return motionDistance;
}
- public Position getMotionPosition() {
- return motionPosition;
+ public void setMotionDistance(double motionDistance) {
+ this.motionDistance = motionDistance;
}
private boolean overspeedState;