Search in sources :

Example 1 with KeyStore

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;
}
Also used : StatusItem(com.eveningoutpost.dexdrip.UtilityModels.StatusItem) ArrayList(java.util.ArrayList) KeyStore(com.eveningoutpost.dexdrip.store.KeyStore)

Example 2 with KeyStore

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;
}
Also used : StatusItem(com.eveningoutpost.dexdrip.UtilityModels.StatusItem) ArrayList(java.util.ArrayList) KeyStore(com.eveningoutpost.dexdrip.store.KeyStore)

Aggregations

StatusItem (com.eveningoutpost.dexdrip.UtilityModels.StatusItem)2 KeyStore (com.eveningoutpost.dexdrip.store.KeyStore)2 ArrayList (java.util.ArrayList)2