Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
UyTube_obligatorio_PdA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Juan José Álvarez Pérez
UyTube_obligatorio_PdA
Commits
65712251
Commit
65712251
authored
5 years ago
by
Alfa-J
Browse files
Options
Downloads
Patches
Plain Diff
hice valoracion y comentario
parent
7cf456ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
UyTube_aplicacion/src/Logica/Clases/Comentario.java
+68
-0
68 additions, 0 deletions
UyTube_aplicacion/src/Logica/Clases/Comentario.java
UyTube_aplicacion/src/Logica/Clases/Valoracion.java
+41
-0
41 additions, 0 deletions
UyTube_aplicacion/src/Logica/Clases/Valoracion.java
with
109 additions
and
0 deletions
UyTube_aplicacion/src/Logica/Clases/Comentario.java
+
68
−
0
View file @
65712251
package
Logica.Clases
;
import
Logica.DataType.DtComentario
;
import
java.sql.Date
;
public
class
Comentario
{
private
int
id
;
private
Date
fecha
;
private
String
texto
;
private
int
nivelSubComentario
;
private
Usuario
usr
;
public
Comentario
(
int
id
,
Date
fecha
,
String
texto
,
int
nivelSubComentario
,
Usuario
usr
)
{
this
.
id
=
id
;
this
.
fecha
=
fecha
;
this
.
texto
=
texto
;
this
.
nivelSubComentario
=
nivelSubComentario
;
this
.
usr
=
usr
;
}
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
public
Date
getFecha
()
{
return
fecha
;
}
public
void
setFecha
(
Date
fecha
)
{
this
.
fecha
=
fecha
;
}
public
String
getTexto
()
{
return
texto
;
}
public
void
setTexto
(
String
texto
)
{
this
.
texto
=
texto
;
}
public
int
getNivelSubComentario
()
{
return
nivelSubComentario
;
}
public
void
setNivelSubComentario
(
int
nivelSubComentario
)
{
this
.
nivelSubComentario
=
nivelSubComentario
;
}
public
Usuario
getUsr
()
{
return
usr
;
}
public
void
setUsr
(
Usuario
usr
)
{
this
.
usr
=
usr
;
}
/*
public boolean agregarSubComentario(int x, DtComentario dtC, Usuario usr){
}
public DtComentario getDT(){
DtComentario dtC = new DtComentario(this.id, usr.getNickname, this.fecha, this.texto, this.nivelSubComentario);
return dtC;
}
public boolean agregarSubComentario(int x, DtComentario dtC, Usuario usr){
}
*/
}
This diff is collapsed.
Click to expand it.
UyTube_aplicacion/src/Logica/Clases/Valoracion.java
+
41
−
0
View file @
65712251
package
Logica.Clases
;
import
Logica.DataType.DtValoracion
;
import
Logica.Enumerados.TipoValoracion
;
public
class
Valoracion
{
private
TipoValoracion
val
;
private
Usuario
usr
;
public
Valoracion
(
TipoValoracion
val
,
Usuario
usr
)
{
this
.
val
=
val
;
this
.
usr
=
usr
;
}
public
TipoValoracion
getVal
()
{
return
val
;
}
public
void
setVal
(
TipoValoracion
val
)
{
this
.
val
=
val
;
}
public
Usuario
getUsr
()
{
return
usr
;
}
public
void
setUsr
(
Usuario
usr
)
{
this
.
usr
=
usr
;
}
/*
private DtValoracion getDT(){
DtValoracion dtV = new DtValoracion(this.val, this.usr.getNickname());
return dtV;
}
private DtValoracion getDT(String nickname){
//faltan cosas-------------------------
DtValoracion dtV = new DtValoracion();
return dtV;
}
private boolean modificar(DtValoracion dtV, String nickname){
bolean b;
//faltan cosas-------------------------
return b;
}
*/
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment