forked from Archives/Athou_commafeed
fix #24
This commit is contained in:
@@ -8,6 +8,7 @@ public class Subscription implements Serializable {
|
||||
private Long id;
|
||||
private String name;
|
||||
private String message;
|
||||
private int errorCount;
|
||||
private String feedUrl;
|
||||
private long unread;
|
||||
|
||||
@@ -51,4 +52,12 @@ public class Subscription implements Serializable {
|
||||
this.feedUrl = feedUrl;
|
||||
}
|
||||
|
||||
public int getErrorCount() {
|
||||
return errorCount;
|
||||
}
|
||||
|
||||
public void setErrorCount(int errorCount) {
|
||||
this.errorCount = errorCount;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -213,6 +213,7 @@ public class SubscriptionsREST extends AbstractREST {
|
||||
sub.setId(subscription.getId());
|
||||
sub.setName(subscription.getTitle());
|
||||
sub.setMessage(subscription.getFeed().getMessage());
|
||||
sub.setErrorCount(subscription.getFeed().getErrorCount());
|
||||
sub.setFeedUrl(subscription.getFeed().getLink());
|
||||
Long size = unreadCount.get(subscription.getId());
|
||||
sub.setUnread(size == null ? 0 : size);
|
||||
|
||||
Reference in New Issue
Block a user