cbs
cbs copied to clipboard
Send message to data collector
We need to provide other bounded contexts with a way to send messages to data collectors.
Create tow commands SendMessgeToDataCollector and SendMessgeToNumber an apropriate events SendMessageToDataCollectorRecived SendMessageToNumberRecived.
Once the request is received we would need to dispatch the message. Create new DispatchMessageToDataCollector that can result in MessageSent or MessageFaild event.
The SendMessgeToDataCollector
command can request following content
{
"dataColectorId": "guid",
"message": "string"
}
The SendMessgeToNumber
command can request following content
{
"phoneNumber": "string",
"message": "string"
}