示例#1
0
        // Publish
        public bool Publish()
        {
            var publishedMessage = _messageController.PublishMessage(_messageDTO);

            if (publishedMessage == null)
            {
                return(false);
            }

            _messageDTO = publishedMessage.MessageDTO;
            return(true);
        }
示例#2
0
 public IMessage PublishMessage(IPublishMessageParameters publishMessageParameters)
 {
     return(ExecuteAuthenticatedUserOperation(() => _messageController.PublishMessage(publishMessageParameters)));
 }
示例#3
0
 public Task <ITwitterResult <ICreateMessageDTO> > PublishMessage(IPublishMessageParameters parameters)
 {
     _messagesClientParametersValidator.Validate(parameters);
     return(ExecuteRequest(request => _messageController.PublishMessage(parameters, request)));
 }
示例#4
0
 public IMessage PublishMessage(IMessage message)
 {
     return(StartLoggedUserOperation(() => _messageController.PublishMessage(message.MessageDTO)));
 }