From 447d69ce898b645a8d2ea0145d69216fb657453a Mon Sep 17 00:00:00 2001 From: aqpcalel <40297662+aqpcalel@users.noreply.github.com> Date: Fri, 15 Jun 2018 23:49:28 -0500 Subject: [PATCH] Update Resource.java --- src/model/Resource.java | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/src/model/Resource.java b/src/model/Resource.java index caeec7f..0c3c353 100644 --- a/src/model/Resource.java +++ b/src/model/Resource.java @@ -1,4 +1,47 @@ package model; public class Resource { + + @Persistent + @PrimaryKey + private String id; + + //URL del recurso + @Persistent + private String Url; + + //Estado del recurso + @Persistent + private boolean status; + + //Fecha de creacion del recurso + @Persistent + private Date created; + + //Constructor + public Resource(String id,String url,boolean status,Date create){ + this.id=id; + this.Url=url; + this.status=status; + this.created=create; + } + + public void setId(String id){ + this.id=id; + } + public String getId(){ + return this.id; + } + public void setUrl(String url){ + this.Url=url; + } + public String getUrl(){ + return this.Url; + } + public void setStatus(boolean status){ + this.status=status; + } + public boolean getStatus(){ + return this.status; + } }