package nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.fit.messages; import androidx.annotation.Nullable; import nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.fit.RecordData; import nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.fit.RecordDefinition; import nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.fit.RecordHeader; // // WARNING: This class was auto-generated, please avoid modifying it directly. // See nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.fit.codegen.FitCodeGen // public class FitTimestampCorrelation extends RecordData { public FitTimestampCorrelation(final RecordDefinition recordDefinition, final RecordHeader recordHeader) { super(recordDefinition, recordHeader); final int globalNumber = recordDefinition.getGlobalFITMessage().getNumber(); if (globalNumber != 162) { throw new IllegalArgumentException("FitTimestampCorrelation expects global messages of " + 162 + ", got " + globalNumber); } } @Nullable public Long getLocalTimestamp() { return (Long) getFieldByNumber(3); } @Nullable public Long getTimestamp() { return (Long) getFieldByNumber(253); } }