Files
Athou_commafeed/src/main/java/com/commafeed/frontend/model/Entries.java

98 lines
2.1 KiB
Java
Raw Normal View History

2013-03-23 16:17:19 +01:00
package com.commafeed.frontend.model;
2013-03-22 09:29:30 +01:00
import java.io.Serializable;
2013-03-22 09:29:30 +01:00
import java.util.List;
2013-04-15 14:47:37 +02:00
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
2013-03-22 20:51:22 +01:00
import com.google.common.collect.Lists;
2013-04-15 22:24:37 +02:00
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
2013-03-22 20:51:22 +01:00
2013-03-25 12:24:00 +01:00
@SuppressWarnings("serial")
2013-04-15 14:47:37 +02:00
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
2013-04-15 22:24:37 +02:00
@ApiClass("List of entries with some metadata")
public class Entries implements Serializable {
2013-04-15 22:24:37 +02:00
2013-04-16 12:36:18 +02:00
@ApiProperty("name of the feed or the category requested")
2013-03-22 09:29:30 +01:00
private String name;
2013-04-15 22:24:37 +02:00
2013-04-16 12:36:18 +02:00
@ApiProperty("error or warning message")
2013-03-31 18:47:17 +02:00
private String message;
2013-04-15 22:24:37 +02:00
2013-04-16 12:36:18 +02:00
@ApiProperty("times the server tried to refresh the feed and failed")
2013-04-09 09:03:52 +02:00
private int errorCount;
2013-04-15 22:24:37 +02:00
@ApiProperty("URL of the website, extracted from the feed")
private String feedLink;
@ApiProperty("list generation timestamp")
2013-04-09 11:10:26 +02:00
private long timestamp;
2013-04-15 22:24:37 +02:00
@ApiProperty("if the query has more elements")
private boolean hasMore;
2013-04-16 12:36:18 +02:00
@ApiProperty("list of entries")
2013-03-22 20:51:22 +01:00
private List<Entry> entries = Lists.newArrayList();
2013-03-22 09:29:30 +01:00
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Entry> getEntries() {
return entries;
}
public void setEntries(List<Entry> entries) {
this.entries = entries;
}
2013-03-31 18:47:17 +02:00
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
2013-04-09 09:03:52 +02:00
public int getErrorCount() {
return errorCount;
}
public void setErrorCount(int errorCount) {
this.errorCount = errorCount;
}
public String getFeedLink() {
return feedLink;
}
public void setFeedLink(String feedLink) {
this.feedLink = feedLink;
}
2013-04-09 11:10:26 +02:00
public long getTimestamp() {
return timestamp;
}
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public boolean isHasMore() {
return hasMore;
}
public void setHasMore(boolean hasMore) {
this.hasMore = hasMore;
}
2013-03-22 09:29:30 +01:00
}