Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
6
600SeriesAndroidUploader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cgm
uploader
600SeriesAndroidUploader
Commits
502072fc
Commit
502072fc
authored
8 years ago
by
Lennart Goedhart
Browse files
Options
Downloads
Patches
Plain Diff
Add extra info to Real PumpStatusEvent object.
parent
cd37b298
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/info/nightscout/android/model/medtronicNg/PumpStatusEvent.java
+19
-0
19 additions, 0 deletions
...nightscout/android/model/medtronicNg/PumpStatusEvent.java
with
19 additions
and
0 deletions
app/src/main/java/info/nightscout/android/model/medtronicNg/PumpStatusEvent.java
+
19
−
0
View file @
502072fc
...
...
@@ -14,9 +14,12 @@ public class PumpStatusEvent extends RealmObject {
private
Date
pumpDate
;
// The eventDate/time on the pump at the time of the event
private
String
deviceName
;
private
float
activeInsulin
;
private
short
batteryPercentage
;
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.
@Index
private
boolean
uploaded
=
false
;
public
Date
getEventDate
()
{
return
eventDate
;
...
...
@@ -50,6 +53,14 @@ public class PumpStatusEvent extends RealmObject {
this
.
activeInsulin
=
activeInsulin
;
}
public
short
getBatteryPercentage
()
{
return
batteryPercentage
;
}
public
void
setBatteryPercentage
(
short
batteryPercentage
)
{
this
.
batteryPercentage
=
batteryPercentage
;
}
public
float
getReservoirAmount
()
{
return
reservoirAmount
;
}
...
...
@@ -73,4 +84,12 @@ public class PumpStatusEvent extends RealmObject {
public
void
setBolusWizardBGL
(
int
bolusWizardBGL
)
{
this
.
bolusWizardBGL
=
bolusWizardBGL
;
}
public
boolean
isUploaded
()
{
return
uploaded
;
}
public
void
setUploaded
(
boolean
uploaded
)
{
this
.
uploaded
=
uploaded
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment