Ejemplo n.º 1
0
 // TODO: move this from NewEvent and RegisterActivity to a common file
 private void storeUserData(User user) {
   ServerRequests serverRequest = new ServerRequests(this);
   serverRequest.storeUserDataInBackground(
       user,
       new GetUserCallback() {
         @Override
         public void done(User returnedUser) {
           finish();
         }
       });
 }
Ejemplo n.º 2
0
 private void registerUser(User user) {
   ServerRequests serverRequests = new ServerRequests(this);
   serverRequests.storeUserDataInBackground(
       user,
       new GetUserCallBack() {
         @Override
         public void done(User returnedUser) {
           startActivity(new Intent(Register.this, Login.class));
         }
       });
 }
Ejemplo n.º 3
0
 private void registerUser(User user) {
   ServerRequests serverRequests = new ServerRequests(this);
   serverRequests.storeUserDataInBackground(
       user,
       new GetUserCallback() {
         @Override
         public void done(User returnedUser) {
           showMessage("Congraduations! The user has been created successfully.");
           startActivity(new Intent(Register.this, Login.class));
         }
       });
 }