Skip to content

Commit

Permalink
Change pagination's totalCount type from Integer to Long (for Calls)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemSempere committed Apr 2, 2024
1 parent ccb9248 commit 4414ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/brapi/v2/model/BasePagination.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand All @@ -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;
}

Expand Down

0 comments on commit 4414ed8

Please sign in to comment.