Esempio n. 1
0
        public void Run(string userName, string eMail, string first, string last, string middle, string password, RestCreateUserCallback inCallback)
        {
            var data = new CreateUserData()
            {
                username       = userName,
                first_name     = first,
                middle_initial = middle,
                last_name      = last,
                password       = password,
                email          = eMail
            };

            RestManager.Post(this, RestManager.Request.CREATE_USER, TinyJSON.Encoder.Encode(data, TinyJSON.EncodeOptions.NoTypeHints), CreateUserReply);
            doneCallback = inCallback;
        }
Esempio n. 2
0
            public static void CreateUser(string userName, string eMail, string first, string last, string middle, string password, RestCreateUserCallback callback)
            {
                var restCreateUser = new RestCreateUser();

                restCreateUser.Run(userName, eMail, first, last, middle, password, callback);
            }