Esempio n. 1
0
        // ex {"ktz.local", "sniper", "sniper", "item-54321"}
        public static void Main(string[] args)
        {
            var console    = new AuctionSniperConsole();
            var credencial = new AuctionCredencial {
                Id       = args[1],
                Password = args[2]
            };

            console.RunShell(args[0], credencial, args[3]);

            console.Terminate();
        }
Esempio n. 2
0
        // ex {"ktz.local", "sniper", "sniper", "item-54321"}
        public static void Main(string[] args)
        {
            var console = new AuctionSniperConsole();
            var credencial = new AuctionCredencial {
                Id = args[1],
                Password = args[2]
            };

            console.RunShell(args[0], credencial, args[3]);

            console.Terminate();
        }
        private JabberClient Connection(string inHostName, AuctionCredencial inCredencial)
        {
            var connection = new JabberClient();

            connection.AutoLogin = true;
            connection.AutoStartTLS = false;
            connection.User = inCredencial.Id.User;
            connection.Server = inCredencial.Id.Server;
            connection.Resource = inCredencial.Id.Resource;
            connection.Password = inCredencial.Password;
            connection.Port = 5222;
            connection.NetworkHost = inHostName;

            return connection;
        }
Esempio n. 4
0
        private JabberClient Connection(string inHostName, AuctionCredencial inCredencial)
        {
            var connection = new JabberClient();

            connection.AutoLogin    = true;
            connection.AutoStartTLS = false;
            connection.User         = inCredencial.Id.User;
            connection.Server       = inCredencial.Id.Server;
            connection.Resource     = inCredencial.Id.Resource;
            connection.Password     = inCredencial.Password;
            connection.Port         = 5222;
            connection.NetworkHost  = inHostName;

            return(connection);
        }
 public void RunShell(string inHostName, AuctionCredencial inCredencial, string inItemId)
 {
     this.JoinAuction(this.Connection(inHostName, inCredencial), inItemId);
 }
Esempio n. 6
0
 public void RunShell(string inHostName, AuctionCredencial inCredencial, string inItemId)
 {
     this.JoinAuction(this.Connection(inHostName, inCredencial), inItemId);
 }