Fake setting date/time and reading profile.

This commit is contained in:
Johannes Mockenhaupt 2017-11-11 16:19:17 +01:00
parent 97a5b5c411
commit d7e5a88757
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 7 additions and 1 deletions

View file

@ -1,8 +1,12 @@
package de.jotomo.ruffyscripter.commands; package de.jotomo.ruffyscripter.commands;
import de.jotomo.ruffy.spi.BasalProfile;
public class ReadBasalProfileCommand extends BaseCommand { public class ReadBasalProfileCommand extends BaseCommand {
@Override @Override
public void execute() { public void execute() {
// TODO // TODO
result.basalProfile(new BasalProfile(new double[] {0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d, 0.5d}));
result.success = true;
} }
} }

View file

@ -1,5 +1,7 @@
package de.jotomo.ruffyscripter.commands; package de.jotomo.ruffyscripter.commands;
import android.os.SystemClock;
import org.monkey.d.ruffy.ruffy.driver.display.MenuType; import org.monkey.d.ruffy.ruffy.driver.display.MenuType;
import de.jotomo.ruffy.spi.CommandResult; import de.jotomo.ruffy.spi.CommandResult;
@ -14,6 +16,6 @@ public class SetDateAndTimeCommand extends BaseCommand {
/* scripter.navigateToMenu(MenuType.DATE_AND_TIME_MENU); /* scripter.navigateToMenu(MenuType.DATE_AND_TIME_MENU);
scripter.pressCheckKey(); scripter.pressCheckKey();
// TODO ruffy does'n support date/time menu yet*/ // TODO ruffy does'n support date/time menu yet*/
// result.success = true; result.success = true;
} }
} }