mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-01 19:06:06 +02:00
9152a5c3da
This allows for semantic subclassing the FieldDefinition. A FieldDefinitionTimestamp subclass is introduced as example
13 lines
278 B
Java
13 lines
278 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.fit;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
public interface FieldInterface {
|
|
Object decode(ByteBuffer byteBuffer);
|
|
|
|
void encode(ByteBuffer byteBuffer, Object o);
|
|
|
|
void invalidate(ByteBuffer byteBuffer);
|
|
|
|
}
|