package info.nightscout.android.model.medtronicNg;

import java.util.Date;

import io.realm.RealmObject;
import io.realm.annotations.Index;

/**
 * Created by lgoedhart on 4/06/2016.
 */
public class PumpStatusEvent extends RealmObject {
    @Index
    private Date eventDate; // The actual time of the event (assume the capture device eventDate/time is accurate)
    private Date pumpDate; // The eventDate/time on the pump at the time of the event
    private String deviceName;
    private float activeInsulin;
    private float reservoirAmount;
    private boolean recentBolusWizard; // Whether a bolus wizard has been run recently
    private int bolusWizardBGL; // in mg/dL. 0 means no recent bolus wizard reading.

    public Date getEventDate() {
        return eventDate;
    }

    public void setEventDate(Date eventDate) {
        this.eventDate = eventDate;
    }

    public Date getPumpDate() {
        return pumpDate;
    }

    public void setPumpDate(Date pumpDate) {
        this.pumpDate = pumpDate;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public float getActiveInsulin() {
        return activeInsulin;
    }

    public void setActiveInsulin(float activeInsulin) {
        this.activeInsulin = activeInsulin;
    }

    public float getReservoirAmount() {
        return reservoirAmount;
    }

    public void setReservoirAmount(float reservoirAmount) {
        this.reservoirAmount = reservoirAmount;
    }

    public boolean isRecentBolusWizard() {
        return recentBolusWizard;
    }

    public void setRecentBolusWizard(boolean recentBolusWizard) {
        this.recentBolusWizard = recentBolusWizard;
    }

    public int getBolusWizardBGL() {
        return bolusWizardBGL;
    }

    public void setBolusWizardBGL(int bolusWizardBGL) {
        this.bolusWizardBGL = bolusWizardBGL;
    }
}

@@ -503,24 +503,61 @@
 iveInsulin;%0A
+    private short batteryPercentage;%0A
     private 
@@ -575,24 +575,24 @@
 voirAmount;%0A
-
     private 
@@ -750,16 +750,65 @@
 reading.
+%0A    @Index%0A    private boolean uploaded = false;
 %0A%0A    pu
@@ -1447,32 +1447,238 @@
 Insulin;%0A    %7D%0A%0A
+    public short getBatteryPercentage() %7B%0A        return batteryPercentage;%0A    %7D%0A%0A    public void setBatteryPercentage(short batteryPercentage) %7B%0A        this.batteryPercentage = batteryPercentage;%0A    %7D%0A%0A
     public float
@@ -2191,24 +2191,24 @@
 izardBGL) %7B%0A
-
         this
@@ -2246,11 +2246,166 @@
 L;%0A    %7D
+%0A%0A    public boolean isUploaded() %7B%0A        return uploaded;%0A    %7D%0A%0A    public void setUploaded(boolean uploaded) %7B%0A        this.uploaded = uploaded;%0A    %7D
 %0A%7D%0A

Add extra info to Real PumpStatusEvent object.