2013-05-12 16:09:28 +02:00
|
|
|
package com.commafeed.frontend.model;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2013-08-08 17:00:35 +02:00
|
|
|
import java.util.Date;
|
2013-05-12 16:09:28 +02:00
|
|
|
|
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
|
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
|
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
|
|
|
|
|
|
import com.wordnik.swagger.annotations.ApiClass;
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("serial")
|
|
|
|
|
@XmlRootElement
|
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
|
|
|
@ApiClass("Unread count")
|
|
|
|
|
public class UnreadCount implements Serializable {
|
|
|
|
|
|
|
|
|
|
private long feedId;
|
|
|
|
|
private long unreadCount;
|
2013-08-08 17:00:35 +02:00
|
|
|
private Date newestItemTime;
|
2013-05-12 16:09:28 +02:00
|
|
|
|
|
|
|
|
public UnreadCount() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-08 17:00:35 +02:00
|
|
|
public UnreadCount(long feedId, long unreadCount, Date newestItemTime) {
|
2013-05-12 16:09:28 +02:00
|
|
|
this.feedId = feedId;
|
|
|
|
|
this.unreadCount = unreadCount;
|
2013-08-08 17:00:35 +02:00
|
|
|
this.newestItemTime = newestItemTime;
|
2013-05-12 16:09:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long getFeedId() {
|
|
|
|
|
return feedId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setFeedId(long feedId) {
|
|
|
|
|
this.feedId = feedId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long getUnreadCount() {
|
|
|
|
|
return unreadCount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUnreadCount(long unreadCount) {
|
|
|
|
|
this.unreadCount = unreadCount;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-08 17:00:35 +02:00
|
|
|
public Date getNewestItemTime() {
|
|
|
|
|
return newestItemTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setNewestItemTime(Date newestItemTime) {
|
|
|
|
|
this.newestItemTime = newestItemTime;
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-12 16:09:28 +02:00
|
|
|
}
|