aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/Command.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 11:51:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 11:51:45 +1200
commit5cf1061cfcc5baf214bce145961512fd4f672621 (patch)
tree32efac22ba11abddec21656685c3e0ba730b1e47 /src/org/traccar/model/Command.java
parent34a70e81ecb613c3216fcdd581a9724216137b41 (diff)
downloadtrackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.tar.gz
trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.tar.bz2
trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.zip
Rename other field to attributes
Diffstat (limited to 'src/org/traccar/model/Command.java')
-rw-r--r--src/org/traccar/model/Command.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/org/traccar/model/Command.java b/src/org/traccar/model/Command.java
index cfebaa38e..16772e0cb 100644
--- a/src/org/traccar/model/Command.java
+++ b/src/org/traccar/model/Command.java
@@ -18,15 +18,15 @@ public class Command implements Factory {
public String getType() { return type; }
public void setType(String type) { this.type = type; }
- private Map<String, Object> other = new LinkedHashMap<>();
- public Map<String, Object> getOther() { return other; }
- public void setOther(Map<String, Object> other) { this.other = other; }
-
- public void set(String key, boolean value) { other.put(key, value); }
- public void set(String key, int value) { other.put(key, value); }
- public void set(String key, long value) { other.put(key, value); }
- public void set(String key, double value) { other.put(key, value); }
- public void set(String key, String value) { if (value != null && !value.isEmpty()) other.put(key, value); }
+ private Map<String, Object> attributes = new LinkedHashMap<>();
+ public Map<String, Object> getAttributes() { return attributes; }
+ public void setAttributes(Map<String, Object> attributes) { this.attributes = attributes; }
+
+ public void set(String key, boolean value) { attributes.put(key, value); }
+ public void set(String key, int value) { attributes.put(key, value); }
+ public void set(String key, long value) { attributes.put(key, value); }
+ public void set(String key, double value) { attributes.put(key, value); }
+ public void set(String key, String value) { if (value != null && !value.isEmpty()) attributes.put(key, value); }
public static final String TYPE_POSITION_SINGLE = "positionSingle";
public static final String TYPE_POSITION_PERIODIC = "positionPeriodic";