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