Back to project page simple-dash.
The source code is released under:
MIT License
If you think the Android project simple-dash listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.bmdtech.simpledash.event; /*from w w w . j av a 2s . c o m*/ import org.joda.time.DateTime; public final class TelemetryEvent implements BaseEvent { public static final String TYPE_FIELD = "Type"; public static final String TELEMETRY_EVENT_TYPE = "TelemetryFeedEvent"; public static final String EVENT_TIMESTAMP_FIELD = "EventTimestamp"; public static final String CURRENT_GEAR_FIELD = "CurrentGear"; public static final String SPEED_FIELD = "Speed"; public static final String RPM_FIELD = "Rpm"; private final DateTime timestamp; private final Integer currentGear; private final Float speed; private final Float rpm; public TelemetryEvent(DateTime timestamp, Integer currentGear, Float speed, Float rpm) { this.timestamp = timestamp; this.currentGear = currentGear; this.speed = speed; this.rpm = rpm; } public DateTime getTimestamp() { return timestamp; } public Integer getCurrentGear() { return currentGear; } public Float getSpeed() { return speed; } public Float getRpm() { return rpm; } }