package edu.wichita.iot.smart_home.comfortvote.data;

import android.text.format.DateFormat;

import com.j256.ormlite.field.DatabaseField;

/**
 * Created by Mostafa on 4/1/2016.
 *
 */
public class SensorSampleData extends SensorData{

}

@@ -230,10 +230,2749 @@
 rData%7B%0A%0A
+    public static SensorSampleData newInstance(final ComfData comfData)%7B%0A        SensorSampleData sensorSampleData = new SensorSampleData();%0A%0A        sensorSampleData.currentTime = DateFormat.format(%22MM/dd/yyyy HH:mm:ss%22, System.currentTimeMillis()).toString();%0A        sensorSampleData.heartRateQuality = comfData.heartRateQuality;%0A        sensorSampleData.heartRate = comfData.heartRate;%0A        sensorSampleData.accelerometerX = comfData.accelerometerX;%0A        sensorSampleData.accelerometerY = comfData.accelerometerY;%0A        sensorSampleData.accelerometerZ = comfData.accelerometerZ;%0A        sensorSampleData.accelerometerX2 = comfData.accelerometerX2;%0A        sensorSampleData.accelerometerY2 = comfData.accelerometerY2;%0A        sensorSampleData.accelerometerZ2 = comfData.accelerometerZ2;%0A        sensorSampleData.angAccelerometerX = comfData.angAccelerometerX;%0A        sensorSampleData.angAccelerometerY = comfData.angAccelerometerY;%0A        sensorSampleData.angAccelerometerZ = comfData.angAccelerometerZ;%0A        sensorSampleData.brightnessVal = comfData.brightnessVal;%0A        sensorSampleData.airPressure = comfData.airPressure;%0A        sensorSampleData.temperature = comfData.temperature;%0A        sensorSampleData.resistance = comfData.resistance;%0A        sensorSampleData.caloriesToday = comfData.caloriesToday;%0A        sensorSampleData.caloriesTS = comfData.caloriesTS;%0A        sensorSampleData.skinTemperature = comfData.skinTemperature;%0A        sensorSampleData.uVExposureToday = comfData.uVExposureToday;%0A        sensorSampleData.uVIndexLevel = comfData.uVIndexLevel;%0A        sensorSampleData.motionType = comfData.motionType;%0A        sensorSampleData.distance = comfData.distance;%0A        sensorSampleData.pace = comfData.pace;%0A        sensorSampleData.speed = comfData.speed;%0A        sensorSampleData.totalLoss = comfData.totalLoss;%0A        sensorSampleData.totalGain = comfData.totalGain;%0A        sensorSampleData.steppingGain = comfData.steppingGain;%0A        sensorSampleData.steppingLoss = comfData.steppingLoss;%0A        sensorSampleData.steppingAscended = comfData.steppingAscended;%0A        sensorSampleData.steppingDescended = comfData.steppingDescended;%0A        sensorSampleData.rate = comfData.rate;%0A        sensorSampleData.flightsStairsAscended = comfData.flightsStairsAscended;%0A        sensorSampleData.flightsStairsDescended = comfData.flightsStairsDescended;%0A        sensorSampleData.bandContactState = comfData.bandContactState;%0A        sensorSampleData.pedometer = comfData.pedometer;%0A        sensorSampleData.pedometerTS = comfData.pedometerTS;%0A        sensorSampleData.rrInterval = comfData.rrInterval;%0A        sensorSampleData.statusStr = comfData.statusStr;%0A%0A        return sensorSampleData;%0A    %7D%0A%0A
 %7D%0A

Add new instance creator