package eu.dnetlib.rmi.objects.resultSet;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.google.common.collect.Lists;

@XmlRootElement
public class ResultSetResponse {

	private int from = 0;
	private int to = 0;
	private boolean end = false;
	private int total = -1;
	private List<String> elements = Lists.newArrayList();

	public ResultSetResponse() {}

	public ResultSetResponse(final int from, final int to, final boolean end, final int total, final List<String> elements) {
		this.from = from;
		this.to = to;
		this.end = end;
		this.total = total;
		this.elements = elements;
	}

	public int getFrom() {
		return from;
	}

	public void setFrom(final int from) {
		this.from = from;
	}

	public int getTo() {
		return to;
	}

	public void setTo(final int to) {
		this.to = to;
	}

	public boolean isEnd() {
		return end;
	}

	public void setEnd(final boolean end) {
		this.end = end;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(final int total) {
		this.total = total;
	}

	public List<String> getElements() {
		return elements;
	}

	public void setElements(final List<String> elements) {
		this.elements = elements;
	}

}
