Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            if (args.Length < 3)
            {
                PrintUsage();
                return;
            }

            string username = args[0];
            string password = args[1];

            uint matchId;

            if (!uint.TryParse(args[2], out matchId))
            {
                Console.WriteLine("Invalid Match ID!");
                return;
            }

            DotaClient client = new DotaClient(username, password, matchId);

            // connect
            client.Connect();

            // wait for results of the match request
            client.Wait();

            // print off what steam gave us
            PrintMatchDetails(client.Match);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {


            Console.WriteLine("Username:"******"Password:"******"Invalid Match ID!");
                return;
            }

            DotaClient client = new DotaClient(username, password, matchId);


            client.Connect();


            client.Wait();

            PrintMatchDetails(client.Match);
        }
Ejemplo n.º 3
0
        static void Main( string[] args )
        {
            if ( args.Length < 3 )
            {
                PrintUsage();
                return;
            }

            string username = args[ 0 ];
            string password = args[ 1 ];

            uint matchId;
            if ( !uint.TryParse( args[ 2 ], out matchId ) )
            {
                Console.WriteLine( "Invalid Match ID!" );
                return;
            }

            DotaClient client = new DotaClient( username, password, matchId );

            // connect
            client.Connect();

            // wait for results of the match request
            client.Wait();

            // print off what steam gave us
            PrintMatchDetails( client.Match );
        }