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

pl.grzeslowski.jsupla.protocol.api.structs.sds.SetChannelConfigResult Maven / Gradle / Ivy

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

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_*
  unsigned char ConfigType;  // SUPLA_CONFIG_TYPE_
  unsigned char ChannelNumber;
} TSDS_SetChannelConfigResult;
*/ @lombok.EqualsAndHashCode @lombok.ToString @javax.annotation.Generated(value="Struct original name: TSDS_SetChannelConfigResult", date = "2024-09-06T08:44:38.112Z[Etc/UTC]") public class SetChannelConfigResult implements pl.grzeslowski.jsupla.protocol.api.structs.sds.ServerDeviceServer { /** * SUPLA_CONFIG_RESULT_* *

* unsigned byte */ public final short result; /** * SUPLA_CONFIG_TYPE_ *

* unsigned byte */ public final short configType; /** * unsigned byte */ public final short channelNumber; public SetChannelConfigResult(short result, short configType, short channelNumber) { this.result = unsigned(result); this.configType = unsigned(configType); this.channelNumber = unsigned(channelNumber); } @Override public pl.grzeslowski.jsupla.protocol.api.calltypes.ServerDeviceServerCallType callType() { throw new UnsupportedOperationException("CallType for " +getClass().getSimpleName()+" is not set!"); } @Override public int size() { return CHAR_SIZE // result + CHAR_SIZE // configType + CHAR_SIZE // channelNumber ; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy