From 9b2d54915672de190e377c523e25324c4c542254 Mon Sep 17 00:00:00 2001 From: Alejandro Linares Amado Date: Wed, 4 Dec 2019 04:27:59 +0100 Subject: [PATCH] =?UTF-8?q?VisitTO=20componente=20implementaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sources/MyHealth/src/TO/VisitTO.java | 45 ++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/1.sources/MyHealth/src/TO/VisitTO.java b/1.sources/MyHealth/src/TO/VisitTO.java index a2030fc..a053984 100644 --- a/1.sources/MyHealth/src/TO/VisitTO.java +++ b/1.sources/MyHealth/src/TO/VisitTO.java @@ -17,13 +17,54 @@ import javax.xml.bind.annotation.XmlRootElement; */ @XmlRootElement(name = "Visit") public class VisitTO implements Serializable { + + private static final long serialVersionUID = 1L; - + private Integer id; + private Date date; + private Time time; + private String observations; + private String result; public VisitTO() { super(); } - + public VisitTO(Integer id, Date date, Time time, String observation, String result) { + this.setId(id); + this date=date; + this time + 1} + public Integer getId() { + return this.id; + } + + public void setId(integer id) { + this.id=id; + } + + public Date getDate() { + return this.Date; + } + + public void setDate(Date date) { + this.date=date; + } + + public Time getTime() { + return this.time; + } + + public void setTime(Time time) { + this.time=time; + } + + public String getObservations() { + return this.observations; + } + + public void setObservations(String obs) { + this.observations=obs; + } }