Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model.external;import java.util.List;/*** Paginated envelope for the /external master feeds. serverTime is captured* before the query runs so partners can pass it back verbatim as the next* updatedSince without clock-skew gaps.*/public class ExternalPage<T> {private long serverTime;private int offset;private int limit;private long totalCount;private List<T> records;public ExternalPage() {}public ExternalPage(long serverTime, int offset, int limit, long totalCount, List<T> records) {this.serverTime = serverTime;this.offset = offset;this.limit = limit;this.totalCount = totalCount;this.records = records;}public long getServerTime() {return serverTime;}public void setServerTime(long serverTime) {this.serverTime = serverTime;}public int getOffset() {return offset;}public void setOffset(int offset) {this.offset = offset;}public int getLimit() {return limit;}public void setLimit(int limit) {this.limit = limit;}public long getTotalCount() {return totalCount;}public void setTotalCount(long totalCount) {this.totalCount = totalCount;}public List<T> getRecords() {return records;}public void setRecords(List<T> records) {this.records = records;}}