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

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

The newest version!
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.*;

/**
 * server -> client

Original code:

typedef struct {
  // server -> client

  char EOL;  // End Of List
  _supla_int_t Id;
  char online;

  TSuplaChannelValue_B value;
} TSC_SuplaChannelValue_B;
*/ @lombok.EqualsAndHashCode @lombok.ToString @javax.annotation.Generated(value="Struct original name: TSC_SuplaChannelValue_B", date = "2024-09-06T08:44:38.097Z[Etc/UTC]") public class SuplaChannelValueB implements pl.grzeslowski.jsupla.protocol.api.structs.sc.ServerClient { /** * End Of List */ public final byte eOL; public final int id; public final byte online; public final pl.grzeslowski.jsupla.protocol.api.structs.TSuplaChannelValueB value; public SuplaChannelValueB(byte eOL, int id, byte online, pl.grzeslowski.jsupla.protocol.api.structs.TSuplaChannelValueB value) { this.eOL = eOL; this.id = id; this.online = online; this.value = value; } @Override public pl.grzeslowski.jsupla.protocol.api.calltypes.ServerClientCallType callType() { return pl.grzeslowski.jsupla.protocol.api.calltypes.ServerClientCallType.SUPLA_SC_CALL_CHANNEL_VALUE_UPDATE_B; } @Override public int size() { return BYTE_SIZE // eOL + INT_SIZE // id + BYTE_SIZE // online + value.size() // value ; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy