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

pl.grzeslowski.jsupla.protocol.api.structs.ds.FirmwareUpdateParams Maven / Gradle / Ivy

The newest version!
package pl.grzeslowski.jsupla.protocol.api.structs.ds;

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 {
  char Platform;

  _supla_int_t Param1;
  _supla_int_t Param2;
  _supla_int_t Param3;
  _supla_int_t Param4;
} TDS_FirmwareUpdateParams;
*/ @lombok.EqualsAndHashCode @lombok.ToString @javax.annotation.Generated(value="Struct original name: TDS_FirmwareUpdateParams", date = "2024-09-06T08:44:38.045Z[Etc/UTC]") public class FirmwareUpdateParams implements pl.grzeslowski.jsupla.protocol.api.structs.ds.DeviceServer { public final byte platform; public final int param1; public final int param2; public final int param3; public final int param4; public FirmwareUpdateParams(byte platform, int param1, int param2, int param3, int param4) { this.platform = platform; this.param1 = param1; this.param2 = param2; this.param3 = param3; this.param4 = param4; } @Override public pl.grzeslowski.jsupla.protocol.api.calltypes.DeviceServerCallType callType() { return pl.grzeslowski.jsupla.protocol.api.calltypes.DeviceServerCallType.SUPLA_DS_CALL_GET_FIRMWARE_UPDATE_URL; } @Override public int size() { return BYTE_SIZE // platform + INT_SIZE // param1 + INT_SIZE // param2 + INT_SIZE // param3 + INT_SIZE // param4 ; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy