예제 #1
0
        public async Task SendChatAndClearTextBox()
        {
            var localTypedText    = ChatTextBox.Text;
            var targetCharacter   = _privateMessageActions.GetTargetCharacter(localTypedText);
            var sendChatOperation = _safeNetworkOperationFactory.CreateSafeAsyncOperation(
                async() => await _chatActions.SendChatToServer(localTypedText, targetCharacter),
                SetInitialStateAndShowError);

            if (!await sendChatOperation.Invoke())
            {
                return;
            }

            _chatTextBoxActions.ClearChatText();

            _chatBubbleActions.ShowChatBubbleForMainCharacter(localTypedText);
        }
 public void AdminAnnounce(string message)
 {
     _chatBubbleActions.ShowChatBubbleForMainCharacter(message);
 }