I have a class from an android application that does only the user registry and called it the UserController. In my view controller makes the communication between view and model, but as the class only makes a registration, I believe that it could also be a DAO. I still have a hard time understanding what's in a controller and a DAO
package com.app.eventos.controllers;
import com.app.eventos.dao.ConfiguracaoFirebase;
import com.app.eventos.dao.ConfiguracaoFirebaseAuth;
import com.app.eventos.model.Usuario;
import com.google.firebase.auth.FirebaseUser;
public class UsuarioController {
private Usuario usuario;
public UsuarioController() {}
public void cadastrarUsuario(String nome, String email
, String senha, String idUser) {
usuario = new Usuario(nome, email, senha);
ConfiguracaoFirebase.getDatabaseReference()
.child("usuarios").child(idUser).setValue(usuario);
}
}