2013-03-23 16:17:19 +01:00
|
|
|
package com.commafeed.frontend.model;
|
2013-03-22 09:29:30 +01:00
|
|
|
|
2013-03-23 15:52:26 +01:00
|
|
|
import java.io.Serializable;
|
2013-03-22 09:29:30 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2013-08-11 11:59:24 +02:00
|
|
|
import lombok.Data;
|
|
|
|
|
|
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 22:24:37 +02:00
|
|
|
@ApiClass("List of entries with some metadata")
|
2013-08-11 11:59:24 +02:00
|
|
|
@Data
|
2013-03-23 15:52:26 +01:00
|
|
|
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
|
|
|
|
2013-07-01 21:25:09 +01:00
|
|
|
@ApiProperty("URL of the website, extracted from the feed")
|
|
|
|
|
private String feedLink;
|
|
|
|
|
|
2013-06-08 14:09:46 +02:00
|
|
|
@ApiProperty("list generation timestamp")
|
2013-04-09 11:10:26 +02:00
|
|
|
private long timestamp;
|
2013-04-15 22:24:37 +02:00
|
|
|
|
2013-06-08 14:09:46 +02:00
|
|
|
@ApiProperty("if the query has more elements")
|
|
|
|
|
private boolean hasMore;
|
|
|
|
|
|
2013-08-01 11:17:38 +02:00
|
|
|
@ApiProperty("the requested offset")
|
|
|
|
|
private int offset;
|
|
|
|
|
|
|
|
|
|
@ApiProperty("the requested limit")
|
|
|
|
|
private int limit;
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|