Android Open Source - simple-dash Telemetry Event






From Project

Back to project page simple-dash.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

org.bmdtech.simpledash.SimpleDashApp.java
org.bmdtech.simpledash.activity.MainActivity.java
org.bmdtech.simpledash.activity.SettingsActivity.java
org.bmdtech.simpledash.activity.UpdatableActivity.java
org.bmdtech.simpledash.event.BaseEvent.java
org.bmdtech.simpledash.event.ConnectivityEvent.java
org.bmdtech.simpledash.event.TelemetryEvent.java
org.bmdtech.simpledash.handler.AndroidMessageHandler.java
org.bmdtech.simpledash.telemetry.TelemetryConnector.java
org.bmdtech.simpledash.utils.Logging.java
org.bmdtech.simpledash.utils.SpeedUnit.java
org.bmdtech.simpledash.utils.Validators.java