1
|
package eu.dnetlib.openaire.exporter.datasource.clients;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
6
|
import eu.dnetlib.openaire.exporter.model.datasource.DatasourceInfo;
|
7
|
import eu.dnetlib.openaire.exporter.model.datasource.db.ApiDbEntry;
|
8
|
import eu.dnetlib.openaire.exporter.vocabularies.Country;
|
9
|
import io.swagger.annotations.ApiModel;
|
10
|
import io.swagger.annotations.ApiModelProperty;
|
11
|
|
12
|
/**
|
13
|
* Created by claudio on 30/11/2016.
|
14
|
*/
|
15
|
@JsonAutoDetect
|
16
|
@ApiModel(value = "DatasourceManager response model", description = "provides information about the DatasourceManager responses")
|
17
|
public class Response {
|
18
|
|
19
|
@ApiModelProperty(position = 1)
|
20
|
private Header header;
|
21
|
|
22
|
@ApiModelProperty(position = 2)
|
23
|
private List<DatasourceInfo> datasourceInfo;
|
24
|
|
25
|
@ApiModelProperty(position = 3)
|
26
|
private List<ApiDbEntry> apiResponse;
|
27
|
|
28
|
@ApiModelProperty(position = 4)
|
29
|
private List<Country> countries;
|
30
|
|
31
|
@ApiModelProperty(position = 5)
|
32
|
private List<String> datasourceIds;
|
33
|
|
34
|
public Header getHeader() {
|
35
|
return this.header;
|
36
|
}
|
37
|
|
38
|
public Response setHeader(final Header header) {
|
39
|
this.header = header;
|
40
|
return this;
|
41
|
}
|
42
|
|
43
|
public List<DatasourceInfo> getDatasourceInfo() {
|
44
|
return datasourceInfo;
|
45
|
}
|
46
|
|
47
|
public Response setDatasourceInfo(final List<DatasourceInfo> datasourceInfo) {
|
48
|
this.datasourceInfo = datasourceInfo;
|
49
|
return this;
|
50
|
}
|
51
|
|
52
|
public List<ApiDbEntry> getApiResponse() {
|
53
|
return this.apiResponse;
|
54
|
}
|
55
|
|
56
|
public Response setApiResponse(final List<ApiDbEntry> apiResponse) {
|
57
|
this.apiResponse = apiResponse;
|
58
|
return this;
|
59
|
}
|
60
|
|
61
|
public List<Country> getCountries() {
|
62
|
return this.countries;
|
63
|
}
|
64
|
|
65
|
public Response setCountries(final List<Country> countries) {
|
66
|
this.countries = countries;
|
67
|
return this;
|
68
|
}
|
69
|
|
70
|
public List<String> getDatasourceIds() {
|
71
|
return datasourceIds;
|
72
|
}
|
73
|
|
74
|
public Response setDatasourceIds(final List<String> datasourceIds) {
|
75
|
this.datasourceIds = datasourceIds;
|
76
|
return this;
|
77
|
}
|
78
|
}
|
79
|
|