From cb24d13caeb668a6ede18b94e916a71785ae575d Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 7 Sep 2017 09:25:20 +0200 Subject: [PATCH] Remove GetReservoirLevelCommand, will be a method in the future. --- .../commands/GetReservoirLevelCommand.java | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/scripter/commands/GetReservoirLevelCommand.java diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/scripter/commands/GetReservoirLevelCommand.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/scripter/commands/GetReservoirLevelCommand.java deleted file mode 100644 index 2d61d26fcc..0000000000 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/scripter/commands/GetReservoirLevelCommand.java +++ /dev/null @@ -1,28 +0,0 @@ -package info.nightscout.androidaps.plugins.PumpCombo.scripter.commands; - -import java.util.List; - -public class GetReservoirLevelCommand extends BaseCommand { - @Override - public CommandResult execute() { - // TODO merge this into GetPumpHistory / GetFullPumpState; or maybe just have - // GetPumpState and parameterize to just read the displayed menu, read reservoir level, read history? - // TODO rough version, no error handling thought out - - // turn into a method; bolus commands needs this as a precheck, parameterize GetPumpState command - // to include reservoir level if desired - scripter.verifyMenuIsDisplayed(MenuType.MAIN_MENU); - scripter.pressCheckKey(); - scripter.waitForMenuToBeLeft(MenuType.MAIN_MENU); - scripter.verifyMenuIsDisplayed(MenuType.QUICK_INFO); - int remainingInsulin = ((Double) scripter.getCurrentMenu().getAttribute(MenuAttribute.REMAINING_INSULIN)).intValue(); - scripter.returnToMainMenu(); - return new CommandResult().success(true).enacted(false).reservoirLevel(remainingInsulin); - } - - @Override - public List validateArguments() { - // TODO stub - return null; - } -}