Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Development <david-dev@live.de>2016-04-17 15:57:40 +0300
committerDavid Development <david-dev@live.de>2016-04-17 15:57:40 +0300
commitab70b71613906fbba6fc0acd048b729cd32ec161 (patch)
tree7ec9ef391c5b0319f600167ab19e4de397b56b66 /News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java
parentb95d4c10cd47cce6ceff1ddc5b31bd0a7211f6d4 (diff)
Add support for fingerprint field of RssItem (owncloud/news#465)
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java')
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java29
1 files changed, 15 insertions, 14 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java
index 1541c5af..34489e07 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/RssItem.java
@@ -8,7 +8,7 @@ import de.luhmer.owncloudnewsreader.adapter.HasId;
// KEEP INCLUDES - put your custom includes here
// KEEP INCLUDES END
/**
- * Entity mapped to table RSS_ITEM.
+ * Entity mapped to table "RSS_ITEM".
*/
public class RssItem implements HasId<Long> {
@@ -25,6 +25,7 @@ public class RssItem implements HasId<Long> {
private String guid;
/** Not-null value. */
private String guidHash;
+ private String fingerprint;
private Boolean read_temp;
private Boolean starred_temp;
private java.util.Date lastModified;
@@ -52,7 +53,7 @@ public class RssItem implements HasId<Long> {
this.id = id;
}
- public RssItem(long id, long feedId, String link, String title, String body, Boolean read, Boolean starred, String author, String guid, String guidHash, Boolean read_temp, Boolean starred_temp, java.util.Date lastModified, java.util.Date pubDate, String enclosureLink, String enclosureMime) {
+ public RssItem(long id, long feedId, String link, String title, String body, Boolean read, Boolean starred, String author, String guid, String guidHash, String fingerprint, Boolean read_temp, Boolean starred_temp, java.util.Date lastModified, java.util.Date pubDate, String enclosureLink, String enclosureMime) {
this.id = id;
this.feedId = feedId;
this.link = link;
@@ -63,6 +64,7 @@ public class RssItem implements HasId<Long> {
this.author = author;
this.guid = guid;
this.guidHash = guidHash;
+ this.fingerprint = fingerprint;
this.read_temp = read_temp;
this.starred_temp = starred_temp;
this.lastModified = lastModified;
@@ -163,6 +165,14 @@ public class RssItem implements HasId<Long> {
this.guidHash = guidHash;
}
+ public String getFingerprint() {
+ return fingerprint;
+ }
+
+ public void setFingerprint(String fingerprint) {
+ this.fingerprint = fingerprint;
+ }
+
public Boolean getRead_temp() {
return read_temp;
}
@@ -239,10 +249,7 @@ public class RssItem implements HasId<Long> {
}
}
- /**
- * Convenient call for {@link de.greenrobot.dao.AbstractDao#delete(Object)}.
- * Entity must attached to an entity context.
- */
+ /** Convenient call for {@link AbstractDao#delete(Object)}. Entity must attached to an entity context. */
public void delete() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");
@@ -250,10 +257,7 @@ public class RssItem implements HasId<Long> {
myDao.delete(this);
}
- /**
- * Convenient call for {@link de.greenrobot.dao.AbstractDao#update(Object)}.
- * Entity must attached to an entity context.
- */
+ /** Convenient call for {@link AbstractDao#update(Object)}. Entity must attached to an entity context. */
public void update() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");
@@ -261,10 +265,7 @@ public class RssItem implements HasId<Long> {
myDao.update(this);
}
- /**
- * Convenient call for {@link de.greenrobot.dao.AbstractDao#refresh(Object)}.
- * Entity must attached to an entity context.
- */
+ /** Convenient call for {@link AbstractDao#refresh(Object)}. Entity must attached to an entity context. */
public void refresh() {
if (myDao == null) {
throw new DaoException("Entity is detached from DAO context");