Search in sources :

Example 1 with CalSubrecord

use of com.nightscout.core.dexcom.records.CalSubrecord in project android-uploader by nightscout.

the class MockFactory method mockCal505Page.

public static List<CalRecord> mockCal505Page() throws ParseException {
    List<CalRecord> record = new ArrayList<>();
    List<CalSubrecord> subrecord0 = new ArrayList<>();
    subrecord0.add(new CalSubrecord(121, 70130, 186705605, 186705180));
    subrecord0.add(new CalSubrecord(83, 74480, 186782402, 186782153));
    List<CalSubrecord> subrecord1 = new ArrayList<>();
    subrecord1.add(new CalSubrecord(121, 70130, 186705605, 186705180));
    subrecord1.add(new CalSubrecord(83, 74480, 186782402, 186782153));
    record.add(new CalRecord(17791.61320896296, 512.6837392183724, 0.9, 0.5, 186959093, 186980695, subrecord0));
    record.add(new CalRecord(17791.61320896296, 512.6837392183724, 0.9, 0.5, 186959393, 186980995, subrecord1));
    return record;
}
Also used : CalSubrecord(com.nightscout.core.dexcom.records.CalSubrecord) ArrayList(java.util.ArrayList) CalRecord(com.nightscout.core.dexcom.records.CalRecord)

Example 2 with CalSubrecord

use of com.nightscout.core.dexcom.records.CalSubrecord in project android-uploader by nightscout.

the class MockFactory method mockCalPre505Page.

public static List<CalRecord> mockCalPre505Page() throws ParseException {
    List<CalSubrecord> subrec = new ArrayList<>();
    subrec.add(new CalSubrecord(102, 109056, 180243725, 180243367));
    subrec.add(new CalSubrecord(45, 82816, 180294423, 180294101));
    subrec.add(new CalSubrecord(52, 85056, 180328322, 180328043));
    subrec.add(new CalSubrecord(80, 101136, 180370320, 180369852));
    subrec.add(new CalSubrecord(80, 117408, 180455817, 180455393));
    subrec.add(new CalSubrecord(106, 156704, 180549714, 180549424));
    List<CalRecord> record = new ArrayList<>();
    record.add(new CalRecord(38809.93262015008, 901.7557081270957, 0.9, 0.0, 187193265, 180549714, subrec));
    return record;
}
Also used : CalSubrecord(com.nightscout.core.dexcom.records.CalSubrecord) ArrayList(java.util.ArrayList) CalRecord(com.nightscout.core.dexcom.records.CalRecord)

Aggregations

CalRecord (com.nightscout.core.dexcom.records.CalRecord)2 CalSubrecord (com.nightscout.core.dexcom.records.CalSubrecord)2 ArrayList (java.util.ArrayList)2