mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
send date of the newest subscriptions item
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.commafeed.frontend.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
@@ -16,14 +17,16 @@ public class UnreadCount implements Serializable {
|
||||
|
||||
private long feedId;
|
||||
private long unreadCount;
|
||||
private Date newestItemTime;
|
||||
|
||||
public UnreadCount() {
|
||||
|
||||
}
|
||||
|
||||
public UnreadCount(long feedId, long unreadCount) {
|
||||
public UnreadCount(long feedId, long unreadCount, Date newestItemTime) {
|
||||
this.feedId = feedId;
|
||||
this.unreadCount = unreadCount;
|
||||
this.newestItemTime = newestItemTime;
|
||||
}
|
||||
|
||||
public long getFeedId() {
|
||||
@@ -42,4 +45,12 @@ public class UnreadCount implements Serializable {
|
||||
this.unreadCount = unreadCount;
|
||||
}
|
||||
|
||||
public Date getNewestItemTime() {
|
||||
return newestItemTime;
|
||||
}
|
||||
|
||||
public void setNewestItemTime(Date newestItemTime) {
|
||||
this.newestItemTime = newestItemTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user