Example #1
0
        public static void SendPrivate(HumanQQNumber humanQQ, string content)
        {
            var qq = humanQQ.QQ;

            lock (typeof(Messenger))
            {
                if (PrivateMessageDictionary.ContainsKey(qq))
                {
                    PrivateMessageDictionary[qq] += "\r\n" + content;
                }
                else
                {
                    PrivateMessageDictionary[qq] = content;
                }
            }
        }
Example #2
0
 public static void SendToPrivate(this string content, HumanQQNumber qq)
 {
     SendPrivate(qq, content);
 }