forked from I2P_Developers/i2p.i2p
Update: Partial implementation of su3 news with atom feed.
No spec yet, just followed str4d's testnews.atom.xml proposal. Atom parsing is tested, su3 part is incomplete and untested. Todo: add spec to http://i2p-projekt.i2p/en/docs/spec/updates, finish su3 and test.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package net.i2p.router.news;
|
||||
|
||||
/**
|
||||
* One news item.
|
||||
* Any String fields may be null.
|
||||
*
|
||||
* @since 0.9.17
|
||||
*/
|
||||
public class NewsEntry implements Comparable<NewsEntry> {
|
||||
public String title;
|
||||
public String link;
|
||||
public String id;
|
||||
public long updated;
|
||||
public String summary;
|
||||
public String content;
|
||||
public String contentType; // attribute of content
|
||||
public String authorName; // subnode of author
|
||||
|
||||
/** reverse, newest first */
|
||||
public int compareTo(NewsEntry e) {
|
||||
if (updated > e.updated)
|
||||
return -1;
|
||||
if (updated < e.updated)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user