コード例 #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 = "";
        }
コード例 #2
0
ファイル: SystemHelper.cs プロジェクト: yangfei/myqq-client
 public static void SendChatMess(SendChatMessRequestModel requestModel, Action <bool> action)
 {
     sendMess(MessType.SendChatMess, requestModel, action);
 }