Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alvaro Ordóñez Romero
/
DAE-aha00026-aor00039
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b3f125b5
authored
Oct 05, 2023
by
Alvaro Ordóñez Romero
Browse files
Options
_('Browse Files')
Download
Plain Diff
Modificaciones clase usuario y SistemaCarPooling
parents
93c217ed
41acfc5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/java/com/carpooling/carpoolingaoraha/entidades/Usuario.java
src/main/java/com/carpooling/carpoolingaoraha/entidades/Usuario.java
View file @
b3f125b5
...
...
@@ -18,6 +18,8 @@ public class Usuario {
private
int
puntuacion
;
private
rol
rol
;
private
SistemaCarPooling
sis
;
public
Usuario
(
String
nombre
,
String
apellidos
,
Date
FNac
,
String
DNI
,
int
telefono
,
String
email
,
String
claveAcceso
,
int
puntuacion
,
rol
rol
)
{
this
.
nombre
=
nombre
;
...
...
@@ -102,9 +104,9 @@ public class Usuario {
public
void
setRol
(
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment