Guest User

Untitled

a guest
Jun 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public void addNewUser(String email, String username, String description, String website, String profile_photo) {
  2. User user = new User(userID, 1, email, StringManipulation.condenseUsername(username) );
  3.  
  4. myRef.child(mContext.getString(R.string.dbname_users))
  5. .child(userID)
  6. .setValue(user);
  7.  
  8. UserAccountSettings settings = new UserAccountSettings(
  9. description,
  10. username,
  11. 0,
  12. 0,
  13. 0,
  14. profile_photo,
  15. username,
  16. website
  17. );
  18.  
  19. myRef.child(mContext.getString(R.string.dbname_user_account_settings))
  20. .child(userID)
  21. .setValue(user);
  22. }
Add Comment
Please, Sign In to add comment