package org.glucosio.android.object; import java.util.ArrayList; import java.util.List; public class ReadingData { public PredictionData prediction; public List<GlucoseData> trend; public List<GlucoseData> history; public ReadingData(PredictionData.Result result) { this.prediction = new PredictionData(); this.prediction.realDate = System.currentTimeMillis(); this.prediction.errorCode = result; this.trend = new ArrayList<>(); this.history = new ArrayList<>(); } public ReadingData(PredictionData prediction, List<GlucoseData> trend, List<GlucoseData> history) { this.prediction = prediction; this.trend = trend; this.history = history; } public ReadingData() {} public static class TransferObject { public long id; public ReadingData data; public TransferObject() {} public TransferObject(long id, ReadingData data) { this.id = id; this.data = data; } } }