コード例 #1
0
ファイル: AParser.cs プロジェクト: scottc/xdcc-grabscher
        protected AParser()
        {
            Server = new XG.Model.Domain.Server { Name = "test.bitpir.at" };

            Channel = new XG.Model.Domain.Channel { Name = "#test" };
            Server.AddChannel(Channel);

            Bot = new Bot {Name = "[XG]TestBot"};
            Channel.AddBot(Bot);

            Connection = new XG.Plugin.Irc.IrcConnection();
            Connection.Server = Server;

            //parser.Parse(null, "", CreateIrcEventArgs(Channel.Name, Bot.Name, "", ReceiveType.QueryMessage));
        }
コード例 #2
0
        protected AParser()
        {
            Server = new Server
            {
                Name = "test.bitpir.at"
            };

            Channel = new Channel
            {
                Name = "#test"
            };
            Server.AddChannel(Channel);

            Bot = new Bot
            {
                Name = "[XG]TestBot"
            };
            Channel.AddBot(Bot);

            Packet = new Packet
            {
                Name     = "Testfile.with.a.long.name.mkv",
                RealName = "Testfile.with.a.long.name.mkv",
                Id       = 1,
                Enabled  = true,
                RealSize = 975304559
            };
            Bot.AddPacket(Packet);

            Connection        = new XG.Plugin.Irc.IrcConnection();
            Connection.Server = Server;

            FileActions.Files = new Files();
            File = new File("Testfile.with.a.long.name.mkv", 975304559);
            FileActions.Files.Add(File);
        }
コード例 #3
0
ファイル: AParser.cs プロジェクト: lformella/xdcc-grabscher
        protected AParser()
        {
            Server = new Server
            {
                Name = "test.bitpir.at"
            };

            Channel = new Channel
            {
                Name = "#test"
            };
            Server.AddChannel(Channel);

            Bot = new Bot
            {
                Name = "[XG]TestBot"
            };
            Channel.AddBot(Bot);

            Packet = new Packet
            {
                Name = "Testfile.with.a.long.name.mkv",
                RealName = "Testfile.with.a.long.name.mkv",
                Id = 1,
                Enabled = true,
                RealSize = 975304559
            };
            Bot.AddPacket(Packet);

            Connection = new XG.Plugin.Irc.IrcConnection();
            Connection.Server = Server;

            FileActions.Files = new Files();
            File = new File("Testfile.with.a.long.name.mkv", 975304559);
            FileActions.Files.Add(File);
        }