示例#1
0
        public bool DestroyMessage(IMessageDTO messageDTO)
        {
            if (messageDTO == null)
            {
                throw new ArgumentException("Message cannot be null");
            }

            messageDTO.IsMessageDestroyed = _messageQueryExecutor.DestroyMessage(messageDTO);
            return(messageDTO.IsMessageDestroyed);
        }
示例#2
0
        public bool DestroyMessage(IEventDTO eventDTO)
        {
            if (eventDTO == null)
            {
                throw new ArgumentNullException(nameof(eventDTO));
            }

            eventDTO.MessageCreate.IsDestroyed = _messageQueryExecutor.DestroyMessage(eventDTO);
            return(eventDTO.MessageCreate.IsDestroyed);
        }
示例#3
0
 public Task <ITwitterResult> DestroyMessage(IDeleteMessageParameters parameters, ITwitterRequest request)
 {
     return(_messageQueryExecutor.DestroyMessage(parameters, request));
 }