Commit b3f125b5 by Alvaro Ordóñez Romero

Modificaciones clase usuario y SistemaCarPooling

parents 93c217ed 41acfc5f
...@@ -18,6 +18,8 @@ public class Usuario { ...@@ -18,6 +18,8 @@ public class Usuario {
private int puntuacion; private int puntuacion;
private rol rol; private rol rol;
private SistemaCarPooling sis;
public Usuario(String nombre, String apellidos, Date FNac, String DNI, int telefono, String email, public Usuario(String nombre, String apellidos, Date FNac, String DNI, int telefono, String email,
String claveAcceso, int puntuacion, rol rol) { String claveAcceso, int puntuacion, rol rol) {
this.nombre = nombre; this.nombre = nombre;
...@@ -102,9 +104,9 @@ public class Usuario { ...@@ -102,9 +104,9 @@ public class Usuario {
public void setRol(rol rol) { public void setRol(rol rol) {
this.rol = rol; this.rol = rol;
} }
public List<Viaje> buscarViaje(String origen) public List<Viaje> buscarViaje(String origen, String destino, Date fecha, rol rol)
{ {
List<Viaje> c = null; List<Viaje> c = sis.getViajes();
return c; return c;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment