/// <summary> /// 手机端点击获取目标好友所有未读信息 /// </summary> /// <returns> 所有未读消息</returns> public string GetAllReceiveMsg(string data, Client client, Server server) { string[] strs = data.Split(','); int id = int.Parse(strs[0]); int friendId = int.Parse(strs[1]); List <Messages> messages = null; messages = messageDAO.GetReceiveMsgs(client.MySqlConnection, id, friendId); if (messages != null) { string msgs = ""; foreach (var item in messages) { msgs += item.ToString() + "-"; } return(((int)ReturnCode.Success).ToString() + "," + msgs); } else { return(((int)ReturnCode.Fail).ToString() + "," + friendId); } }