Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37149 amit 1
package com.spice.profitmandi.dao.model.external;
2
 
3
import java.util.List;
4
 
5
/**
6
 * Paginated envelope for the /external master feeds. serverTime is captured
7
 * before the query runs so partners can pass it back verbatim as the next
8
 * updatedSince without clock-skew gaps.
9
 */
10
public class ExternalPage<T> {
11
 
12
    private long serverTime;
13
    private int offset;
14
    private int limit;
15
    private long totalCount;
16
    private List<T> records;
17
 
18
    public ExternalPage() {
19
    }
20
 
21
    public ExternalPage(long serverTime, int offset, int limit, long totalCount, List<T> records) {
22
        this.serverTime = serverTime;
23
        this.offset = offset;
24
        this.limit = limit;
25
        this.totalCount = totalCount;
26
        this.records = records;
27
    }
28
 
29
    public long getServerTime() {
30
        return serverTime;
31
    }
32
 
33
    public void setServerTime(long serverTime) {
34
        this.serverTime = serverTime;
35
    }
36
 
37
    public int getOffset() {
38
        return offset;
39
    }
40
 
41
    public void setOffset(int offset) {
42
        this.offset = offset;
43
    }
44
 
45
    public int getLimit() {
46
        return limit;
47
    }
48
 
49
    public void setLimit(int limit) {
50
        this.limit = limit;
51
    }
52
 
53
    public long getTotalCount() {
54
        return totalCount;
55
    }
56
 
57
    public void setTotalCount(long totalCount) {
58
        this.totalCount = totalCount;
59
    }
60
 
61
    public List<T> getRecords() {
62
        return records;
63
    }
64
 
65
    public void setRecords(List<T> records) {
66
        this.records = records;
67
    }
68
}