mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Implement background task for fetching RSS feeds
* Implemented in briar-core as a `ScheduledExecutorService` that gets started when the app starts * The briar-api has a `FeedManager` interface that the UI can use to register and unregister feeds * In this first iteration, feeds are fetched via HTTP(S), not Tor Closes #484
This commit is contained in:
21
briar-api/src/org/briarproject/api/feed/FeedConstants.java
Normal file
21
briar-api/src/org/briarproject/api/feed/FeedConstants.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.briarproject.api.feed;
|
||||
|
||||
public interface FeedConstants {
|
||||
|
||||
/* delay after start before fetching feed, in minutes */
|
||||
int FETCH_DELAY_INITIAL = 1;
|
||||
|
||||
/* the interval the feed should be fetched, in minutes */
|
||||
int FETCH_INTERVAL = 30;
|
||||
|
||||
// group metadata keys
|
||||
String KEY_FEEDS = "feeds";
|
||||
String KEY_FEED_URL = "feedURL";
|
||||
String KEY_BLOG_GROUP_ID = "blogGroupId";
|
||||
String KEY_FEED_TITLE = "feedTitle";
|
||||
String KEY_FEED_DESC = "feedDesc";
|
||||
String KEY_FEED_AUTHOR = "feedAuthor";
|
||||
String KEY_FEED_ADDED = "feedAdded";
|
||||
String KEY_FEED_UPDATED = "feedUpdated";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user