use of me.retrodaredevil.solarthing.reason.OpenSourceExecutionReason in project solarthing by wildmountainfarms.
the class OnMateCommandSent method onCommandExecute.
@Override
public void onCommandExecute(SourcedCommand<MateCommand> command) {
OpenSource source = command.getSource();
ExecutionReason reason = new OpenSourceExecutionReason(source);
Packet packet = new ImmutableSuccessMateCommandPacket(SuccessMateCommandPacket.VERSION_LATEST, command.getCommand(), // for legacy reasons, include the data source converted to a string
source.toDataSource().toString(), reason);
packetListReceiver.receive(Collections.singletonList(packet));
}
Aggregations