mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 18:41:14 +01:00
7c597b325a
- model package contains mostly shared interfaces (UI+service), not named GB* - impl package contains implementations of those interfaces, named GB* the impl classes should not be used by the service (not completely done) - the service classes should mostly use classes inside the service and deviceevents packages (tbd) Every device now has two packages: - devices/[device name] for UI related functionality - service[device name] for lowlevel communication
31 lines
729 B
Java
31 lines
729 B
Java
package nodomain.freeyourgadget.gadgetbridge.model;
|
|
|
|
import android.os.Parcelable;
|
|
|
|
import java.util.Calendar;
|
|
|
|
public interface Alarm extends Parcelable, Comparable<Alarm> {
|
|
public static final byte ALARM_ONCE = 0;
|
|
public static final byte ALARM_MON = 1;
|
|
public static final byte ALARM_TUE = 2;
|
|
public static final byte ALARM_WED = 4;
|
|
public static final byte ALARM_THU = 8;
|
|
public static final byte ALARM_FRI = 16;
|
|
public static final byte ALARM_SAT = 32;
|
|
public static final byte ALARM_SUN = 64;
|
|
|
|
int getIndex();
|
|
|
|
Calendar getAlarmCal();
|
|
|
|
String getTime();
|
|
|
|
boolean isEnabled();
|
|
|
|
boolean isSmartWakeup();
|
|
|
|
int getRepetitionMask();
|
|
|
|
boolean getRepetition(int dow);
|
|
}
|