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

45 lines
1.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;
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")
@Data
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;
@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
}