Class MessagesRequest
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.domain.MessagesRequest
This class is designed to hold all the required information to send a set of messages. Any additional information needed should be reachable from
the data present in this class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class is designed to hold all the required information of a message indicates if the primary channel should be ignored. -
Field Summary
FieldsModifier and TypeFieldDescriptionA list of attachment that may be sent to the user.private CampaignCampaign.private NotificationChannelNotification channel.A message list, every single message must be delivered.private UserThe user that is the original destination of the messages.A list of variables that may be used by the templates to compose the message. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
user
The user that is the original destination of the messages. -
messageSpecialProperties
A message list, every single message must be delivered. -
campaign
Campaign. -
variables
A list of variables that may be used by the templates to compose the message. -
attachments
A list of attachment that may be sent to the user. -
channel
Notification channel.
-
-
Constructor Details
-
MessagesRequest
public MessagesRequest(User user, List<MessagesRequest.MessageSpecialProperties> messageSpecialProperties, Campaign campaign, Map<String, Object> variables, Map<String, String> attachments) Constructor with only needed properties.- Parameters:
user- user to send.messageSpecialProperties- message properties.campaign- campaign.variables- other message variables.attachments- message attachments.
-