1
|
package eu.dnetlib.repo.manager.shared.broker;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
|
6
|
import java.util.List;
|
7
|
|
8
|
/**
|
9
|
* Created by stefanos on 26/10/2016.
|
10
|
*/
|
11
|
public class EventsPage implements IsSerializable{
|
12
|
|
13
|
private String datasource;
|
14
|
private String topic;
|
15
|
private long currPage;
|
16
|
private long totalPages;
|
17
|
private long total;
|
18
|
private List<OpenAireEventPayload> values;
|
19
|
|
20
|
public EventsPage() {
|
21
|
|
22
|
}
|
23
|
public EventsPage(final String datasource, final String topic, final long currPage, final long totalPages, final long total,
|
24
|
final List<OpenAireEventPayload> values) {
|
25
|
this.datasource = datasource;
|
26
|
this.topic = topic;
|
27
|
this.currPage = currPage;
|
28
|
this.totalPages = totalPages;
|
29
|
this.total = total;
|
30
|
this.values = values;
|
31
|
}
|
32
|
|
33
|
public String getDatasource() {
|
34
|
return datasource;
|
35
|
}
|
36
|
|
37
|
public void setDatasource(String datasource) {
|
38
|
this.datasource = datasource;
|
39
|
}
|
40
|
|
41
|
public String getTopic() {
|
42
|
return topic;
|
43
|
}
|
44
|
|
45
|
public void setTopic(String topic) {
|
46
|
this.topic = topic;
|
47
|
}
|
48
|
|
49
|
public long getCurrPage() {
|
50
|
return currPage;
|
51
|
}
|
52
|
|
53
|
public void setCurrPage(long currPage) {
|
54
|
this.currPage = currPage;
|
55
|
}
|
56
|
|
57
|
public long getTotalPages() {
|
58
|
return totalPages;
|
59
|
}
|
60
|
|
61
|
public void setTotalPages(long totalPages) {
|
62
|
this.totalPages = totalPages;
|
63
|
}
|
64
|
|
65
|
public long getTotal() {
|
66
|
return total;
|
67
|
}
|
68
|
|
69
|
public void setTotal(long total) {
|
70
|
this.total = total;
|
71
|
}
|
72
|
|
73
|
public List<OpenAireEventPayload> getValues() {
|
74
|
return values;
|
75
|
}
|
76
|
|
77
|
public void setValues(List<OpenAireEventPayload> values) {
|
78
|
this.values = values;
|
79
|
}
|
80
|
}
|