pl.grzeslowski.jsupla.protocol.api.structs.ds.FirmwareUpdateParams 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'
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
;
}
}