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; }
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); }