All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.grzeslowski.jsupla.protocol.api.decoders.dcs.SuplaPingServerCOMPATDecoder Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy