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

pl.grzeslowski.jsupla.protocol.api.structs.sc.DeviceConfigUpdateOrResult Maven / Gradle / Ivy

package pl.grzeslowski.jsupla.protocol.api.structs.sc;

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 {
  unsigned char Result;      // SUPLA_CONFIG_RESULT_*. It matters when it is a
                             // response to SUPLA_CS_CALL_GET_DEVICE_CONFIG
  TSCS_DeviceConfig Config;  // Last variable in struct!
} TSC_DeviceConfigUpdateOrResult;
*/ @lombok.EqualsAndHashCode @lombok.ToString @javax.annotation.Generated(value="Struct original name: TSC_DeviceConfigUpdateOrResult", date = "2024-08-03T11:49:42.263Z[Etc/UTC]") public class DeviceConfigUpdateOrResult implements pl.grzeslowski.jsupla.protocol.api.structs.sc.ServerClient { /** * SUPLA_CONFIG_RESULT_*. It matters when it is a response to SUPLA_CS_CALL_GET_DEVICE_CONFIG *

* unsigned byte */ public final short result; /** * Last variable in struct! */ public final pl.grzeslowski.jsupla.protocol.api.structs.scs.DeviceConfig config; public DeviceConfigUpdateOrResult(short result, pl.grzeslowski.jsupla.protocol.api.structs.scs.DeviceConfig config) { this.result = unsigned(result); this.config = config; } @Override public pl.grzeslowski.jsupla.protocol.api.calltypes.ServerClientCallType callType() { return pl.grzeslowski.jsupla.protocol.api.calltypes.ServerClientCallType.SUPLA_SC_CALL_DEVICE_CONFIG_UPDATE_OR_RESULT; } @Override public int size() { return CHAR_SIZE // result + config.size() // config ; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy