diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/SetCountdownSettings.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/SetCountdownSettings.java new file mode 100644 index 000000000..b74f1b1f7 --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/SetCountdownSettings.java @@ -0,0 +1,26 @@ +package nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests; + +import java.nio.ByteBuffer; + +public class SetCountdownSettings extends Request { + public SetCountdownSettings(int startTime, int endTime, short offset) { + ByteBuffer buffer = createBuffer(); + + buffer.putInt(startTime); + buffer.putInt(endTime); + buffer.putShort(offset); + // buff + + this.data = buffer.array(); + } + + @Override + public byte[] getStartSequence() { + return new byte[]{2, 19, 1}; + } + + @Override + public int getPayloadLength() { + return 13; + } +}