This commit is contained in:
Athou
2013-04-09 13:37:00 +02:00
parent e718586e22
commit 7d982a440a
5 changed files with 57 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ public class Entry implements Serializable {
private String id;
private String title;
private String content;
private String enclosureUrl;
private String enclosureType;
private Date date;
private String feedId;
private String feedName;
@@ -97,4 +99,20 @@ public class Entry implements Serializable {
this.feedUrl = feedUrl;
}
public String getEnclosureUrl() {
return enclosureUrl;
}
public void setEnclosureUrl(String enclosureUrl) {
this.enclosureUrl = enclosureUrl;
}
public String getEnclosureType() {
return enclosureType;
}
public void setEnclosureType(String enclosureType) {
this.enclosureType = enclosureType;
}
}

View File

@@ -105,6 +105,8 @@ public class EntriesREST extends AbstractREST {
entry.setId(String.valueOf(status.getId()));
entry.setTitle(feedEntry.getTitle());
entry.setContent(feedEntry.getContent());
entry.setEnclosureUrl(status.getEntry().getEnclosureUrl());
entry.setEnclosureType(status.getEntry().getEnclosureType());
entry.setDate(feedEntry.getUpdated());
entry.setUrl(feedEntry.getUrl());