2017-05-21 22:05:03 +02:00
|
|
|
package info.nightscout.androidaps.interfaces;
|
|
|
|
|
2020-04-24 12:00:31 +02:00
|
|
|
import dagger.android.HasAndroidInjector;
|
|
|
|
|
2017-05-21 22:05:03 +02:00
|
|
|
/**
|
|
|
|
* Created by mike on 21.05.2017.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public interface Interval {
|
|
|
|
long durationInMsec();
|
|
|
|
long start();
|
|
|
|
|
|
|
|
// planned end time at time of creation
|
|
|
|
long originalEnd();
|
|
|
|
|
|
|
|
// end time after cut
|
|
|
|
long end();
|
|
|
|
|
|
|
|
void cutEndTo(long end);
|
|
|
|
boolean match(long time);
|
|
|
|
boolean before(long time);
|
|
|
|
boolean after(long time);
|
2017-05-23 20:15:14 +02:00
|
|
|
|
|
|
|
boolean isInProgress();
|
|
|
|
boolean isEndingEvent();
|
2018-01-21 13:37:38 +01:00
|
|
|
|
|
|
|
boolean isValid();
|
2017-05-21 22:05:03 +02:00
|
|
|
}
|