Insight CancelBolusTaskRunner refactor

This commit is contained in:
Jamorham 2018-01-28 22:35:26 +00:00
parent c019b4c533
commit 07cdee0533
No known key found for this signature in database
GPG key ID: 0BC5C3E0AAD64DF9

View file

@ -1,9 +1,9 @@
package info.nightscout.androidaps.plugins.PumpInsight.connector; package info.nightscout.androidaps.plugins.PumpInsight.connector;
import sugar.free.sightparser.applayer.AppLayerMessage; import sugar.free.sightparser.applayer.AppLayerMessage;
import sugar.free.sightparser.applayer.descriptors.ActiveBolusType;
import sugar.free.sightparser.applayer.remote_control.CancelBolusMessage; import sugar.free.sightparser.applayer.remote_control.CancelBolusMessage;
import sugar.free.sightparser.applayer.status.ActiveBolusesMessage; import sugar.free.sightparser.applayer.status.ActiveBolusesMessage;
import sugar.free.sightparser.applayer.status.BolusType;
import sugar.free.sightparser.handling.SightServiceConnector; import sugar.free.sightparser.handling.SightServiceConnector;
import sugar.free.sightparser.handling.TaskRunner; import sugar.free.sightparser.handling.TaskRunner;
@ -11,9 +11,9 @@ import sugar.free.sightparser.handling.TaskRunner;
public class CancelBolusTaskRunner extends TaskRunner { public class CancelBolusTaskRunner extends TaskRunner {
private BolusType bolusType; private ActiveBolusType bolusType;
public CancelBolusTaskRunner(SightServiceConnector serviceConnector, BolusType bolusType) { public CancelBolusTaskRunner(SightServiceConnector serviceConnector, ActiveBolusType bolusType) {
super(serviceConnector); super(serviceConnector);
this.bolusType = bolusType; this.bolusType = bolusType;
} }