use of com.eveningoutpost.dexdrip.store.KeyStore in project xDrip by NightscoutFoundation.
the class TidepoolStatus method megaStatus.
// data for MegaStatus
public static List<StatusItem> megaStatus() {
final KeyStore keyStore = FastStore.getInstance();
final List<StatusItem> l = new ArrayList<>();
// TODO needs generic message format string
l.add(new StatusItem("Tidepool Synced to", niceTimeScalar(msSince(UploadChunk.getLastEnd())) + " ago"));
final String status = keyStore.getS(TidepoolUploader.STATUS_KEY);
if (!JoH.emptyString(status)) {
l.add(new StatusItem("Tidepool Status", status));
}
return l;
}
use of com.eveningoutpost.dexdrip.store.KeyStore in project xDrip-plus by jamorham.
the class TidepoolStatus method megaStatus.
// data for MegaStatus
public static List<StatusItem> megaStatus() {
final KeyStore keyStore = FastStore.getInstance();
final List<StatusItem> l = new ArrayList<>();
// TODO needs generic message format string
l.add(new StatusItem("Tidepool Synced to", niceTimeScalar(msSince(UploadChunk.getLastEnd())) + " ago"));
final String status = keyStore.getS(TidepoolUploader.STATUS_KEY);
if (!JoH.emptyString(status)) {
l.add(new StatusItem("Tidepool Status", status));
}
return l;
}
Aggregations