Esempio n. 1
0
        public void Notify(ConfermaPartenzeCommand command)
        {
            _sender.SendNotification(command);

            foreach (var partenza in command.ConfermaPartenze.Partenze)
            {
                var messaggio  = $"La squadra {partenza.Squadre[0].Nome} è partita alle ore {DateTime.Now.Hour}:{DateTime.Now.Minute} dalla sede {partenza.Mezzo.Distaccamento.Descrizione} con il mezzo targato {partenza.Mezzo.Codice} per dirigersi a {command.ConfermaPartenze.richiesta.Localita.Indirizzo}. Codice Intervento: {command.ConfermaPartenze.richiesta.CodRichiesta}";
                var infoMatrix = new MessageMatrix()
                {
                    Messaggio = messaggio,
                    CodSede   = command.ConfermaPartenze.CodiceSede.Split('.')[0]
                };
                _callMatrix.SendMessage(infoMatrix);
            }
        }
Esempio n. 2
0
 public void Notify(ConfermaPartenzeCommand command)
 {
     _sender.SendNotification(command);
 }