@Test public void deserialize() { int[] packet = getPacketData("01 12 40 00 00"); OffWithEffectCommand command = new OffWithEffectCommand(null, null); DefaultDeserializer deserializer = new DefaultDeserializer(packet); ZclFieldDeserializer fieldDeserializer = new ZclFieldDeserializer(deserializer); ZclHeader zclHeader = new ZclHeader(fieldDeserializer); System.out.println(zclHeader); command.deserialize(fieldDeserializer); System.out.println(command); assertEquals(Integer.valueOf(0), command.getEffectIdentifier()); assertEquals(Integer.valueOf(0), command.getEffectVariant()); }
@Override public void deserialize(final ZclFieldDeserializer deserializer) { effectIdentifier = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); effectVariant = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); }
OffWithEffectCommand extends ZclOnOffCommand { @Override public void deserialize(final ZclFieldDeserializer deserializer) { effectIdentifier = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); effectVariant = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); } }
OffWithEffectCommand extends ZclOnOffCommand { @Override public void deserialize(final ZclFieldDeserializer deserializer) { effectIdentifier = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); effectVariant = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); } @Deprecated  OffWithEffectCommand();  OffWithEffectCommand(
            Integer effectIdentifier,
            Integer effectVariant); }
OffWithEffectCommand extends ZclOnOffCommand { @Override public void deserialize(final ZclFieldDeserializer deserializer) { effectIdentifier = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); effectVariant = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); } @Deprecated  OffWithEffectCommand();  OffWithEffectCommand(
            Integer effectIdentifier,
            Integer effectVariant); Integer getEffectIdentifier(); @Deprecated void setEffectIdentifier(final Integer effectIdentifier); Integer getEffectVariant(); @Deprecated void setEffectVariant(final Integer effectVariant); @Override void serialize(final ZclFieldSerializer serializer); @Override void deserialize(final ZclFieldDeserializer deserializer); @Override String toString(); }
OffWithEffectCommand extends ZclOnOffCommand { @Override public void deserialize(final ZclFieldDeserializer deserializer) { effectIdentifier = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); effectVariant = (Integer) deserializer.deserialize(ZclDataType.UNSIGNED_8_BIT_INTEGER); } @Deprecated  OffWithEffectCommand();  OffWithEffectCommand(
            Integer effectIdentifier,
            Integer effectVariant); Integer getEffectIdentifier(); @Deprecated void setEffectIdentifier(final Integer effectIdentifier); Integer getEffectVariant(); @Deprecated void setEffectVariant(final Integer effectVariant); @Override void serialize(final ZclFieldSerializer serializer); @Override void deserialize(final ZclFieldDeserializer deserializer); @Override String toString(); static int CLUSTER_ID; static int COMMAND_ID; }