Files
Athou_commafeed/src/main/java/com/commafeed/frontend/model/Entries.java
2013-08-12 13:42:18 +02:00

45 lines
1.1 KiB
Java

package com.commafeed.frontend.model;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
import com.google.common.collect.Lists;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
@SuppressWarnings("serial")
@ApiClass("List of entries with some metadata")
@Data
public class Entries implements Serializable {
@ApiProperty("name of the feed or the category requested")
private String name;
@ApiProperty("error or warning message")
private String message;
@ApiProperty("times the server tried to refresh the feed and failed")
private int errorCount;
@ApiProperty("URL of the website, extracted from the feed")
private String feedLink;
@ApiProperty("list generation timestamp")
private long timestamp;
@ApiProperty("if the query has more elements")
private boolean hasMore;
@ApiProperty("the requested offset")
private int offset;
@ApiProperty("the requested limit")
private int limit;
@ApiProperty("list of entries")
private List<Entry> entries = Lists.newArrayList();
}