Exemplo n.º 1
0
        private void SendChatMess()
        {
            if (txtSendMess.Text.Trim() == "")
            {
                return;
            }
            SendChatMessRequestModel requestModel = new SendChatMessRequestModel();

            requestModel.content    = txtSendMess.Text.Trim();
            requestModel.targetId   = friendModel.friendid;
            requestModel.targetType = 0;
            ShowMyMessage(DateTime.Now, SystemHelper.currentUser.nickname, requestModel.content);
            SystemHelper.SendChatMess(requestModel, new Action <bool>((m) => {
                if (!m)
                {
                    ShowSendErrorMesssage(requestModel.content);
                }
            }));
            txtSendMess.Text = "";
        }
Exemplo n.º 2
0
 public static void SendChatMess(SendChatMessRequestModel requestModel, Action <bool> action)
 {
     sendMess(MessType.SendChatMess, requestModel, action);
 }