public ChatLog AddLeaveChatLog(string openid, string userinfo) { var infoarr = userinfo.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); Dictionary <string, string> userInfoDic = new Dictionary <string, string>(); foreach (var item in infoarr) { var tmp = item.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries); if (tmp.Length == 2) { userInfoDic.Add(tmp[0], tmp[1]); } } return(ChatLogHelper.AddOfflineChatLog(openid, userInfoDic)); }
public ChatLog SetRead(int logId) { return(ChatLogHelper.SetRead(logId)); }
public IEnumerable <ChatLog> GetAllNotReadedLog() { return(ChatLogHelper.GetAllNotReadedLog()); }