Post new RSS entries into the user's personal blog

Closes #486
This commit is contained in:
Torsten Grote
2016-07-25 18:58:55 -03:00
parent 8d1a26ba72
commit 6454acdaa5
4 changed files with 185 additions and 64 deletions

View File

@@ -43,6 +43,11 @@ public class Feed {
this(url, blogId, title, description, author, added, 0L, 0L);
}
public Feed(String url, GroupId blogId, long added) {
this(url, blogId, null, null, null, added, 0L, 0L);
}
public String getUrl() {
return url;
}

View File

@@ -1,13 +1,20 @@
package org.briarproject.api.feed;
import java.util.concurrent.TimeUnit;
import static java.util.concurrent.TimeUnit.MINUTES;
public interface FeedConstants {
/* delay after start before fetching feed, in minutes */
/* delay after start before fetching feed */
int FETCH_DELAY_INITIAL = 1;
/* the interval the feed should be fetched, in minutes */
/* the interval the feed should be fetched */
int FETCH_INTERVAL = 30;
/* the unit that applies to the fetch times */
TimeUnit FETCH_UNIT = MINUTES;
// group metadata keys
String KEY_FEEDS = "feeds";
String KEY_FEED_URL = "feedURL";