pl.grzeslowski.jsupla.protocol.api.structs.ThermostatScheduleCfg Maven / Gradle / Ivy
package pl.grzeslowski.jsupla.protocol.api.structs;
import pl.grzeslowski.jsupla.protocol.api.structs.*;
import pl.grzeslowski.jsupla.protocol.api.types.ProtoWithSize;
import static pl.grzeslowski.jsupla.protocol.api.JavaConsts.*;
import static pl.grzeslowski.jsupla.protocol.api.Preconditions.*;
import static pl.grzeslowski.jsupla.protocol.api.consts.ProtoConsts.*;
/**
Original code:
typedef struct {
TThermostatValueGroup Group[4];
} TThermostat_ScheduleCfg;
*/
@lombok.EqualsAndHashCode @lombok.ToString
@javax.annotation.Generated(value="Struct original name: TThermostat_ScheduleCfg", date = "2024-08-03T11:49:42.309Z[Etc/UTC]")
public class ThermostatScheduleCfg implements pl.grzeslowski.jsupla.protocol.api.types.ProtoWithSize {
public final pl.grzeslowski.jsupla.protocol.api.structs.ThermostatValueGroup[] group;
public ThermostatScheduleCfg(pl.grzeslowski.jsupla.protocol.api.structs.ThermostatValueGroup[] group) {
this.group = checkArrayLength(group, (int) 4);
}
/* no call type */
@Override
public int size() {
return arraySize(group) // group
;
}
}