All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.n2oapp.framework.api.rest.Paging Maven / Gradle / Ivy

There is a newer version: 7.28.1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy