public bool DestroyMessage(IMessageDTO messageDTO) { if (messageDTO == null) { throw new ArgumentException("Message cannot be null"); } messageDTO.IsMessageDestroyed = _messageQueryExecutor.DestroyMessage(messageDTO); return(messageDTO.IsMessageDestroyed); }
public bool DestroyMessage(IEventDTO eventDTO) { if (eventDTO == null) { throw new ArgumentNullException(nameof(eventDTO)); } eventDTO.MessageCreate.IsDestroyed = _messageQueryExecutor.DestroyMessage(eventDTO); return(eventDTO.MessageCreate.IsDestroyed); }
public Task <ITwitterResult> DestroyMessage(IDeleteMessageParameters parameters, ITwitterRequest request) { return(_messageQueryExecutor.DestroyMessage(parameters, request)); }