From 3db6bb789e474a55a6d412ed8d97af6714be7bf0 Mon Sep 17 00:00:00 2001
From: JotaJota96 <jjap96@gmail.com>
Date: Tue, 20 Aug 2019 03:24:03 -0300
Subject: [PATCH] DataType de Comentario hecho

---
 .../src/Logica/DataType/DtComentario.java     | 45 +++++++++++++++----
 UyTube_aplicacion/src/Logica/main.java        |  8 ----
 2 files changed, 36 insertions(+), 17 deletions(-)

diff --git a/UyTube_aplicacion/src/Logica/DataType/DtComentario.java b/UyTube_aplicacion/src/Logica/DataType/DtComentario.java
index 0dafa39..eae989b 100644
--- a/UyTube_aplicacion/src/Logica/DataType/DtComentario.java
+++ b/UyTube_aplicacion/src/Logica/DataType/DtComentario.java
@@ -1,14 +1,41 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
 package Logica.DataType;
 
-/**
- *
- * @author pc01
- */
+import java.util.Date;
+
 public class DtComentario {
+    private int id;
+    private String nickname;
+    private  Date fecha;
+    private String texto;
+    private int nivelSubComentario;
+
+    public DtComentario(int id, String nickname, Date fecha, String texto, int nivelSubComentario) {
+        this.id = id;
+        this.nickname = nickname;
+        this.fecha = fecha;
+        this.texto = texto;
+        this.nivelSubComentario = nivelSubComentario;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public String getNickname() {
+        return nickname;
+    }
+
+    public Date getFecha() {
+        return fecha;
+    }
+
+    public String getTexto() {
+        return texto;
+    }
+
+    public int getNivelSubComentario() {
+        return nivelSubComentario;
+    }
+    
     
 }
diff --git a/UyTube_aplicacion/src/Logica/main.java b/UyTube_aplicacion/src/Logica/main.java
index 1400bfa..1eb9a84 100644
--- a/UyTube_aplicacion/src/Logica/main.java
+++ b/UyTube_aplicacion/src/Logica/main.java
@@ -1,16 +1,8 @@
 package Logica;
 
-
-
-import java.util.Date;
-
-
 public class main {
     public static void main(String[] args) {
         System.out.println("Hola mundo");
-        Date d = new Date(2019-1900, 8 -1, 20);
-        
-        System.out.println(d);
         
     }
 }
-- 
GitLab