Search in sources :

Example 1 with AttributeMetadataChangedCommand

use of com.canoo.dp.impl.remoting.legacy.communication.AttributeMetadataChangedCommand in project dolphin-platform by canoo.

the class AttributeMetadataChangedCommandEncoder method decode.

@Override
public AttributeMetadataChangedCommand decode(final JsonObject jsonObject) {
    final AttributeMetadataChangedCommand command = new AttributeMetadataChangedCommand();
    command.setAttributeId(getStringElement(jsonObject, ATTRIBUTE_ID));
    command.setMetadataName(getStringElement(jsonObject, NAME));
    command.setValue(ValueEncoder.decodeValue(jsonObject.get(VALUE)));
    return command;
}
Also used : AttributeMetadataChangedCommand(com.canoo.dp.impl.remoting.legacy.communication.AttributeMetadataChangedCommand)

Aggregations

AttributeMetadataChangedCommand (com.canoo.dp.impl.remoting.legacy.communication.AttributeMetadataChangedCommand)1