forked from karelinoleg/xDrip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
373 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"project_info": { | ||
"project_id": "xdrip-plus", | ||
"project_number": "10591810485", | ||
"name": "xDrip plus" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:10591810485:android:b70845957aa2e415", | ||
"client_id": "android:com.eveningoutpost.dexdrip", | ||
"client_type": 1, | ||
"android_client_info": { | ||
"package_name": "com.eveningoutpost.dexdrip" | ||
} | ||
}, | ||
"oauth_client": [], | ||
"api_key": [], | ||
"services": { | ||
"analytics_service": { | ||
"status": 1 | ||
}, | ||
"cloud_messaging_service": { | ||
"status": 2, | ||
"apns_config": [] | ||
}, | ||
"appinvite_service": { | ||
"status": 1, | ||
"other_platform_oauth_client": [] | ||
}, | ||
"google_signin_service": { | ||
"status": 1 | ||
}, | ||
"ads_service": { | ||
"status": 1 | ||
} | ||
} | ||
} | ||
], | ||
"client_info": [], | ||
"ARTIFACT_VERSION": "1" | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/eveningoutpost/dexdrip/Models/CobCalc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.eveningoutpost.dexdrip.Models; | ||
|
||
/** | ||
* Created by jamorham on 04/01/16. | ||
*/ | ||
public class CobCalc { | ||
double initialCarbs; | ||
double decayedBy; | ||
double isDecaying; | ||
double carbTime; | ||
} |
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/eveningoutpost/dexdrip/Models/Iob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.eveningoutpost.dexdrip.Models; | ||
|
||
/** | ||
* Created by jamorham on 02/01/16. | ||
*/ | ||
public class Iob { | ||
public long timestamp; | ||
public double iob = 0; | ||
public CobCalc cobCalc; | ||
public double cob = 0; | ||
public double rawCarbImpact = 0; | ||
public double jCarbImpact = 0; | ||
public double activity = 0; | ||
public double jActivity = 0; | ||
} | ||
|
||
|
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.eveningoutpost.dexdrip.Models; | ||
|
||
import java.text.DecimalFormat; | ||
|
||
/** | ||
* Created by jamorham on 06/01/16. | ||
* | ||
* lazy helper class for utilities | ||
*/ | ||
public class JoH { | ||
final protected static char[] hexArray = "0123456789ABCDEF".toCharArray(); | ||
|
||
// qs = quick string conversion of double for printing | ||
public static String qs(double x) { | ||
return qs(x, 2); | ||
} | ||
|
||
public static String qs(double x, int digits) { | ||
DecimalFormat df = new DecimalFormat("#"); | ||
df.setMaximumFractionDigits(digits); | ||
df.setMinimumIntegerDigits(1); | ||
return df.format(x); | ||
} | ||
|
||
public static String bytesToHex(byte[] bytes) { | ||
char[] hexChars = new char[bytes.length * 2]; | ||
for (int j = 0; j < bytes.length; j++) { | ||
int v = bytes[j] & 0xFF; | ||
hexChars[j * 2] = hexArray[v >>> 4]; | ||
hexChars[j * 2 + 1] = hexArray[v & 0x0F]; | ||
} | ||
return new String(hexChars); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{"entries":[ | ||
{"lexicon": "stop", | ||
"matchWords":[ | ||
"stop", | ||
"cancel", | ||
"done", | ||
"end", | ||
"top", | ||
"ansell", | ||
"finished", | ||
"finish", | ||
"quit" | ||
]}, | ||
|
||
{"lexicon": "rapid", | ||
"matchWords":[ | ||
"rapid", | ||
"rapid acting", | ||
"rapid-acting", | ||
"nova rapid", | ||
"nova log", | ||
"rapido", | ||
"fast-acting", | ||
"fast", | ||
"resurrecting", | ||
"reflecting", | ||
"units", | ||
"unit", | ||
"u", | ||
"you" | ||
]}, | ||
|
||
{"lexicon": "long", | ||
"matchWords":[ | ||
"long", | ||
"long acting", | ||
"lantus" | ||
]}, | ||
|
||
{"lexicon": "carbs", | ||
"matchWords":[ | ||
"carbs", | ||
"cards", | ||
"carbohydrate", | ||
"carbohydrates", | ||
"grams", | ||
"gram", | ||
"carb", | ||
"g", | ||
"gee" | ||
]}, | ||
|
||
{"lexicon": "time", | ||
"matchWords":[ | ||
"time", | ||
"times", | ||
"clock", | ||
"o'clock", | ||
"oclock", | ||
"hour", | ||
"hours", | ||
"at" | ||
]}, | ||
|
||
{"lexicon": "ago", | ||
"matchWords":[ | ||
"ago" | ||
]}, | ||
|
||
|
||
{"lexicon": "blood", | ||
"matchWords":[ | ||
"mmol", | ||
"mmols", | ||
"animal", | ||
"miles", | ||
"mile", | ||
"memo", | ||
"mobile", | ||
"month", | ||
"mm", | ||
"mg", | ||
"bg", | ||
"milligram", | ||
"milligrams", | ||
"normal", | ||
"mole", | ||
"moles", | ||
"sugar", | ||
"blood", | ||
"test", | ||
"blood sugar", | ||
"obsessed" | ||
]}, | ||
|
||
{"lexicon": "grams", | ||
"matchWords":[ | ||
]}, | ||
|
||
{"lexicon": "units", | ||
"matchWords":[ | ||
]} | ||
|
||
]} |
Oops, something went wrong.