示例#1
0
        public void SendUserAlert(string message)
        {
            AlertMessagePacket packet = new AlertMessagePacket();

            packet.Type = PacketType.AlertMessage;

            packet.AlertData         = new AlertMessagePacket.AlertDataBlock();
            packet.AlertData.Message = Utils.StringToBytes(message);
            AlertMessagePacket.AlertInfoBlock[] temp = new AlertMessagePacket.AlertInfoBlock[0];
            packet.AlertInfo = temp;

            proxy.InjectPacket(packet, Direction.Incoming);
        }
示例#2
0
        public void SendUserAlert(string message)
        {
            AlertMessagePacket packet = new AlertMessagePacket();
            packet.Type = PacketType.AlertMessage;

            packet.AlertData = new AlertMessagePacket.AlertDataBlock();
            packet.AlertData.Message = Utils.StringToBytes(message);
            AlertMessagePacket.AlertInfoBlock[] temp = new AlertMessagePacket.AlertInfoBlock[0];
            packet.AlertInfo = temp;

            proxy.InjectPacket(packet, Direction.Incoming);
        }