From 4414ed8be945de715a266271fc200780ffd63f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Semp=C3=A9r=C3=A9?= Date: Tue, 2 Apr 2024 11:30:41 +0200 Subject: [PATCH] Change pagination's totalCount type from Integer to Long (for Calls) --- src/main/java/org/brapi/v2/model/BasePagination.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/brapi/v2/model/BasePagination.java b/src/main/java/org/brapi/v2/model/BasePagination.java index 84fce1e..5a9f5b2 100644 --- a/src/main/java/org/brapi/v2/model/BasePagination.java +++ b/src/main/java/org/brapi/v2/model/BasePagination.java @@ -25,7 +25,7 @@ public class BasePagination { private Integer pageSize = 1000; @SerializedName("totalCount") - private Integer totalCount = null; + private Long totalCount = null; @SerializedName("totalPages") private Integer totalPages = null; @@ -47,7 +47,7 @@ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } - public BasePagination totalCount(Integer totalCount) { + public BasePagination totalCount(Long totalCount) { this.totalCount = totalCount; return this; } @@ -56,11 +56,11 @@ public BasePagination totalCount(Integer totalCount) { * The total number of elements that are available on the server and match the requested query parameters. * @return totalCount **/ - public Integer getTotalCount() { + public Long getTotalCount() { return totalCount; } - public void setTotalCount(Integer totalCount) { + public void setTotalCount(Long totalCount) { this.totalCount = totalCount; }