use of me.retrodaredevil.solarthing.message.MessageSenderMultiplexer in project solarthing by wildmountainfarms.
the class MessageSenderActionNode method getMessageSenderFrom.
private MessageSender getMessageSenderFrom(MessageEventNode messageEventNode) {
List<MessageSender> messageSenders = new ArrayList<>();
for (String senderName : messageEventNode.getSendTo()) {
MessageSender sender = messageSenderMap.get(senderName);
if (sender == null) {
throw new IllegalArgumentException("senderName: " + senderName + " is not defined!");
}
messageSenders.add(sender);
}
return new MessageSenderMultiplexer(messageSenders);
}
Aggregations