Ejemplo n.º 1
0
        /// <summary>
        /// 初始化好友、群组、消息列表
        /// kind=1: 好友
        /// kind=2:群组
        /// kind=3:消息
        /// </summary>
        private void RunVirtualMessage()
        {
            CommonEvent.EmitAddNewFriendEvent("好友1", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友2", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友3", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友4", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友5", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友6", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友7", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友8", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);
            CommonEvent.EmitAddNewFriendEvent("好友9", "*****@*****.**", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), true);

            CommonEvent.EmitAddNewGroupEvent("群聊1", "215204", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊2", "537783", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊3", "5664563", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊4", "2456556", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊5", "21525647", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊6", "21525383", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊7", "215335613", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊8", "215368813", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊9", "215863563", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));
            CommonEvent.EmitAddNewGroupEvent("群聊10", "21553855", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"));


            CommonEvent.EmitAddNewFriendMessageEvent("*****@*****.**", "你好1", "2018-10-08 21:50:22");
            CommonEvent.EmitAddNewFriendMessageEvent("*****@*****.**", "你好2", "2018-10-08 21:50:23");
            CommonEvent.EmitAddNewGroupMessageEvent("好友1", "*****@*****.**", "你好1", "2018-10-08 21:50:21", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), "215204");
            CommonEvent.EmitAddNewGroupMessageEvent("好友2", "*****@*****.**", "你好2", "2018-10-08 21:50:22", new Bitmap(System.Environment.CurrentDirectory + "\\initImage.png"), "215204");

            //好友2不在线
            CommonEvent.EmitOnlineChangeEvent("*****@*****.**", false);
            //好友3不在线
            CommonEvent.EmitOnlineChangeEvent("*****@*****.**", false);
        }