forked from Archives/Athou_commafeed
feed title is now a link to the feed website
This commit is contained in:
@@ -26,6 +26,9 @@ public class Entries implements Serializable {
|
||||
@ApiProperty("times the server tried to refresh the feed and failed")
|
||||
private int errorCount;
|
||||
|
||||
@ApiProperty("URL of the website, extracted from the feed")
|
||||
private String feedLink;
|
||||
|
||||
@ApiProperty("list generation timestamp")
|
||||
private long timestamp;
|
||||
|
||||
@@ -67,6 +70,14 @@ public class Entries implements Serializable {
|
||||
this.errorCount = errorCount;
|
||||
}
|
||||
|
||||
public String getFeedLink() {
|
||||
return feedLink;
|
||||
}
|
||||
|
||||
public void setFeedLink(String feedLink) {
|
||||
this.feedLink = feedLink;
|
||||
}
|
||||
|
||||
public long getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
@@ -99,6 +99,7 @@ public class FeedREST extends AbstractResourceREST {
|
||||
entries.setName(subscription.getTitle());
|
||||
entries.setMessage(subscription.getFeed().getMessage());
|
||||
entries.setErrorCount(subscription.getFeed().getErrorCount());
|
||||
entries.setFeedLink(subscription.getFeed().getLink());
|
||||
|
||||
List<FeedEntryStatus> list = null;
|
||||
if (unreadOnly) {
|
||||
|
||||
Reference in New Issue
Block a user