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

org.gs4tr.gcc.restclient.dto.PageableResponseData Maven / Gradle / Ivy

Go to download

GlobalLink Connect Cloud java is a library to connect your system to GlobalLink Connect Cloud REST API.

There is a newer version: 3.1.3
Show newest version
package org.gs4tr.gcc.restclient.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown=true)
public class PageableResponseData {
    @JsonProperty("current_page_number")
    private Long currentPageNumber;
    @JsonProperty("total_records_count")
    private Long totalRecordsCount;
    @JsonProperty("total_result_pages_count")
    private Long totalResultPagesCount;
    
    public Boolean isEmpty(){
	return totalRecordsCount==null || totalRecordsCount<1;
    }

    public Long getCurrentPageNumber() {
        return currentPageNumber;
    }

    public void setCurrentPageNumber(Long currentPageNumber) {
        this.currentPageNumber = currentPageNumber;
    }

    public Long getTotalRecordsCount() {
        return totalRecordsCount;
    }

    public void setTotalRecordsCount(Long totalRecordsCount) {
        this.totalRecordsCount = totalRecordsCount;
    }

    public Long getTotalResultPagesCount() {
        return totalResultPagesCount;
    }

    public void setTotalResultPagesCount(Long totalResultPagesCount) {
        this.totalResultPagesCount = totalResultPagesCount;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy