Beispiel #1
0
        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));
        }
Beispiel #2
0
 public ChatLog SetRead(int logId)
 {
     return(ChatLogHelper.SetRead(logId));
 }
Beispiel #3
0
 public IEnumerable <ChatLog> GetAllNotReadedLog()
 {
     return(ChatLogHelper.GetAllNotReadedLog());
 }