cbs icon indicating copy to clipboard operation
cbs copied to clipboard

Send message to data collector

Open techgeek03 opened this issue 5 years ago • 0 comments

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"
}

techgeek03 avatar Jan 19 '19 19:01 techgeek03