Exemplo n.º 1
0
 public void Process(AutomaticReplyDefined @event)
 {
     _automaticReplies.SaveAutomaticReply(
         @event.Id,
         @event.Type,
         @event.Language,
         @event.Message,
         @event.ProjectId);
 }
Exemplo n.º 2
0
        public async Task Process(AutomaticReplyDefined @event)
        {
            var automaticReply = await _automaticReplies.GetByProjectTypeAndLanguageAsync(@event.ProjectId, (AutomaticReplyType)@event.Type, @event.Language) ?? new AutomaticReply(@event.Id);

            automaticReply.ProjectId = @event.ProjectId;
            automaticReply.Type      = (AutomaticReplyType)@event.Type;
            automaticReply.Message   = @event.Message;
            automaticReply.Language  = @event.Language;
            await _automaticReplies.Save(automaticReply);
        }
Exemplo n.º 3
0
        public void Process(AutomaticReplyDefined @event)
        {
            var reply = _automaticReplies.GetById(@event.Id);

            reply.Language  = @event.Language;
            reply.Message   = @event.Message;
            reply.ProjectId = @event.ProjectId;
            reply.Type      = (AutomaticReplyType)@event.Type;

            _automaticReplies.Update(reply);
        }