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 = ""; }
public static void SendChatMess(SendChatMessRequestModel requestModel, Action <bool> action) { sendMess(MessType.SendChatMess, requestModel, action); }