Class SetValueMessage


public class SetValueMessage extends OutgoingMessage
Set Value Message. Is sent by the client to change a property value.
Author:
Florian Hotze - Initial contribution
  • Field Details

    • requestId

      public final int requestId
    • key

      public final String key
    • value

      public final CommandValue<?> value
  • Method Details

    • fromCommand

      public static SetValueMessage fromCommand(int requestId, Command command)
      Creates a new SetValueMessage from a command.
      Parameters:
      requestId - the request id, must start with 0 for a new client connection and increment by 1 for each message
      command - the command to create the message from
      Returns:
      the new SetValueMessage