All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.relayr.java.model.DataPackage Maven / Gradle / Ivy

The newest version!
package io.relayr.java.model;

import java.util.ArrayList;
import java.util.List;

/**
 * A reading is the information gathered by the device.
 * It's used internally in the sdk to represent the data that arrived from the sever or from the
 * device via direct connection.
 */
public class DataPackage {

    public long received;
    public String deviceId;
    public String modelId;
    public List readings = new ArrayList<>();

    public static class Data {
        public final long recorded;
        public final String meaning;
        public final String path;
        public final Object value;

        public Data(long recorded, String meaning, String path, Object value) {
            this.recorded = recorded;
            this.meaning = meaning;
            this.path = path;
            this.value = value;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy