diff options
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/Data.java | 2 | ||||
-rw-r--r-- | src/org/traccar/model/Event.java (renamed from src/org/traccar/model/BaseEvent.java) | 24 | ||||
-rw-r--r-- | src/org/traccar/model/Position.java | 4 |
3 files changed, 24 insertions, 6 deletions
diff --git a/src/org/traccar/model/Data.java b/src/org/traccar/model/Data.java index cd72dcbb7..4777543ff 100644 --- a/src/org/traccar/model/Data.java +++ b/src/org/traccar/model/Data.java @@ -15,7 +15,7 @@ */ package org.traccar.model; -public class Data extends BaseEvent implements Factory { +public class Data extends Event implements Factory { @Override public Data create() { diff --git a/src/org/traccar/model/BaseEvent.java b/src/org/traccar/model/Event.java index ad3c976e6..5523174b4 100644 --- a/src/org/traccar/model/BaseEvent.java +++ b/src/org/traccar/model/Event.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 - 2015 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ import java.util.Date; import java.util.LinkedHashMap; import java.util.Map; -public abstract class BaseEvent { +public abstract class Event { private long id; public long getId() { return id; } @@ -51,4 +51,24 @@ public abstract class BaseEvent { return MiscFormatter.toXmlString(other); } + public static final String KEY_INDEX = "index"; + public static final String KEY_HDOP = "hdop"; + public static final String KEY_SATELLITES = "sat"; + public static final String KEY_GSM = "gsm"; + public static final String KEY_GPS = "gps"; + public static final String KEY_EVENT = "event"; + public static final String KEY_ALARM = "alarm"; + public static final String KEY_STATUS = "status"; + public static final String KEY_ODOMETER = "odometer"; + public static final String KEY_INPUT = "input"; + public static final String KEY_OUTPUT = "output"; + public static final String KEY_POWER = "power"; + public static final String KEY_BATTERY = "battery"; + public static final String KEY_TEMPERATURE = "temperature"; + public static final String KEY_MCC = "mcc"; + public static final String KEY_MNC = "mnc"; + public static final String KEY_LAC = "lac"; + public static final String KEY_CELL = "cell"; + public static final String KEY_FUEL = "fuel"; + } diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java index b7e711c7f..62c999d94 100644 --- a/src/org/traccar/model/Position.java +++ b/src/org/traccar/model/Position.java @@ -16,10 +16,8 @@ package org.traccar.model; import java.util.Date; -import java.util.LinkedHashMap; -import java.util.Map; -public class Position extends BaseEvent implements Factory { +public class Position extends Event implements Factory { @Override public Position create() { |