net.n2oapp.framework.api.rest.Paging Maven / Gradle / Ivy
package net.n2oapp.framework.api.rest;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import net.n2oapp.framework.api.metadata.Compiled;
/**
* Количественная информация ответа на запрос получения данных
*/
@Getter
public class Paging implements Compiled {
@JsonProperty
private Integer page;
@JsonProperty
private Integer size;
@JsonProperty
private Integer count;
@JsonProperty
private Boolean hasNext;
public Paging() {
}
public Paging(Integer size) {
this.size = size;
}
public Paging(Integer page, Integer size, Integer count) {
this.page = page;
this.size = size;
this.count = count;
}
public Paging(Integer page, Integer size, Boolean hasNext) {
this.page = page;
this.size = size;
this.hasNext = hasNext;
}
}