1
|
package eu.dnetlib.usagestats.portal;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
|
5
|
import java.io.Serializable;
|
6
|
import java.util.ArrayList;
|
7
|
import java.util.List;
|
8
|
|
9
|
|
10
|
public class CountryUsageStatsAll implements Serializable {
|
11
|
|
12
|
private final static long serialVersionUID = 1;
|
13
|
|
14
|
private String country_all = "all";
|
15
|
private String downloads_all = "0";
|
16
|
private String views_all = "0";
|
17
|
private List<CountryUsageStats> countryUsageStats = new ArrayList<CountryUsageStats>();
|
18
|
//private String pageviews = "0";
|
19
|
|
20
|
public CountryUsageStatsAll() {
|
21
|
}
|
22
|
|
23
|
@JsonProperty("country")
|
24
|
public String getCountry() {
|
25
|
return country_all;
|
26
|
}
|
27
|
|
28
|
@JsonProperty("downloads_all")
|
29
|
public String getDownloads() {
|
30
|
return downloads_all;
|
31
|
}
|
32
|
|
33
|
@JsonProperty("views_all")
|
34
|
public String getViews() {
|
35
|
return views_all;
|
36
|
}
|
37
|
@JsonProperty("CountriesList")
|
38
|
public List<CountryUsageStats> getCountryUsageStats() {
|
39
|
return countryUsageStats;
|
40
|
}
|
41
|
|
42
|
public void addViewsAll(String views_all) {
|
43
|
this.views_all=views_all;
|
44
|
}
|
45
|
public void addDownloadsAll(String downloads_all) {
|
46
|
this.downloads_all=downloads_all;
|
47
|
}
|
48
|
|
49
|
public void addCountryUsageStats(List<CountryUsageStats> countryUsageStats) {
|
50
|
this.countryUsageStats = countryUsageStats;
|
51
|
}
|
52
|
|
53
|
|
54
|
}
|