Package dev.digiried.wattpilot.messages
Class SetValueMessage
java.lang.Object
dev.digiried.wattpilot.messages.Message
dev.digiried.wattpilot.messages.OutgoingMessage
dev.digiried.wattpilot.messages.SetValueMessage
Set Value Message. Is sent by the client to change a property value.
- Author:
- Florian Hotze - Initial contribution
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SetValueMessagefromCommand(int requestId, Command command) Creates a new SetValueMessage from a command.
-
Field Details
-
requestId
public final int requestId -
key
-
value
-
-
Method Details
-
fromCommand
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 messagecommand- the command to create the message from- Returns:
- the new SetValueMessage
-