mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-09 14:48:24 +02:00
18 lines
556 B
Java
18 lines
556 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.devices.sonyswr12.entities.control;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.sonyswr12.util.ByteArrayWriter;
|
|
|
|
public abstract class ControlPoint {
|
|
protected final CommandCode code;
|
|
|
|
public ControlPoint(CommandCode code) {
|
|
this.code = code;
|
|
}
|
|
|
|
protected final ByteArrayWriter getValueWriter() {
|
|
final ByteArrayWriter byteArrayWriter = new ByteArrayWriter();
|
|
byteArrayWriter.appendUint8(this.code.value);
|
|
return byteArrayWriter;
|
|
}
|
|
}
|