pl.grzeslowski.jsupla.protocol.api.decoders.dcs.SuplaPingServerCOMPATDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protocol Show documentation
Show all versions of protocol Show documentation
Uploads all artifacts belonging to configuration ':protocol:archives'
package pl.grzeslowski.jsupla.protocol.api.decoders.dcs;
import lombok.val;
import pl.grzeslowski.jsupla.protocol.api.decoders.PrimitiveDecoder;
import pl.grzeslowski.jsupla.protocol.api.structs.dcs.SuplaPingServerCOMPAT;
import static pl.grzeslowski.jsupla.protocol.api.JavaConsts.*;
import static pl.grzeslowski.jsupla.protocol.api.consts.ProtoConsts.*;
@javax.annotation.Generated(value="Struct original name: TDCS_SuplaPingServer_COMPAT", date = "2024-07-06T18:57:04.471Z[Etc/UTC]")
@lombok.NoArgsConstructor(access = lombok.AccessLevel.PRIVATE)
public class SuplaPingServerCOMPATDecoder implements pl.grzeslowski.jsupla.protocol.api.decoders.dcs.DeviceClientServerDecoder {
public static final SuplaPingServerCOMPATDecoder INSTANCE = new SuplaPingServerCOMPATDecoder();
@Override
public SuplaPingServerCOMPAT decode(byte[] bytes, int offset) {
val now = pl.grzeslowski.jsupla.protocol.api.decoders.TimevalCompatDecoder.INSTANCE.decode(bytes, offset);
offset += now.size();
return new SuplaPingServerCOMPAT(now);
}
}