Ejemplo n.º 1
0
        public void test()
        {
            UserServiceClient userServiceClient = new UserServiceClient();
            User user = new User();

            user.DisplayName = "happy";
            userServiceClient.registerUser(user, "6237");
        }
Ejemplo n.º 2
0
        static void registerUser()
        {
            UserServiceClient userServiceClient = new UserServiceClient();

            User user = new User();

            user.DisplayName = "happy";
            user             = userServiceClient.registerUser(user, "6237");
            Console.WriteLine("return displayName:" + user.DisplayName);

            user.DisplayName = "nokia";
            user             = userServiceClient.registerUser(user, "4433");
            Console.WriteLine("return displayName:" + user.DisplayName);
        }
Ejemplo n.º 3
0
        static void login()
        {
            UserServiceClient userServiceClient = new UserServiceClient();

            User user = new User();

            user.Id          = 983;
            user.DisplayName = "happy";

            user = userServiceClient.login(user, "gxese", new LoginOption());
            Console.WriteLine("login1");

            user = userServiceClient.login(user, "233uov", new LoginOption());
            Console.WriteLine("login2");
        }