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 CountryUsageStats implements Serializable {
|
11
|
|
12
|
private final static long serialVersionUID = 1;
|
13
|
|
14
|
|
15
|
private String country = "";
|
16
|
private String total_repos = "";
|
17
|
private String downloads = "";
|
18
|
private String views = "";
|
19
|
|
20
|
//private String pageviews = "0";
|
21
|
|
22
|
public CountryUsageStats() {
|
23
|
}
|
24
|
|
25
|
@JsonProperty("country")
|
26
|
public String getCountry() {
|
27
|
return country;
|
28
|
}
|
29
|
|
30
|
@JsonProperty("total_repos")
|
31
|
public String getTotalRepos() {
|
32
|
return total_repos;
|
33
|
}
|
34
|
|
35
|
@JsonProperty("downloads")
|
36
|
public String getDownloads() {
|
37
|
return downloads;
|
38
|
}
|
39
|
|
40
|
@JsonProperty("views")
|
41
|
public String getViews() {
|
42
|
return views;
|
43
|
}
|
44
|
|
45
|
public void addCountry(String country) {
|
46
|
this.country=country;
|
47
|
}
|
48
|
|
49
|
public void addTotalRepos(String total_repos) {
|
50
|
this.total_repos=total_repos;
|
51
|
}
|
52
|
|
53
|
public void addViews(String views) {
|
54
|
this.views=views;
|
55
|
}
|
56
|
public void addDownloads(String downloads) {
|
57
|
this.downloads=downloads;
|
58
|
}
|
59
|
|
60
|
}
|