Update Resource.java

This commit is contained in:
aqpcalel 2018-06-15 23:49:28 -05:00 committed by GitHub
parent ca8dae036b
commit 447d69ce89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}