Project

General

Profile

1
package eu.dnetlib.usagestats.sushilite.domain;
2

    
3
import com.fasterxml.jackson.annotation.JsonProperty;
4

    
5
import java.util.List;
6

    
7
/**
8
 * Created by tsampikos on 31/10/2016.
9
 */
10
public class Customer {
11
    private String id = null;
12

    
13
    private List<ReportItem> reportItems;
14

    
15
    public Customer() {
16
    }
17

    
18
    public Customer(String id, List<ReportItem> reportItems) {
19
        this.id = id;
20
        this.reportItems = reportItems;
21
    }
22

    
23
    @JsonProperty("ID")
24
    public String getId() {
25
        return id;
26
    }
27

    
28
    @JsonProperty("ReportItems")
29
    public List<ReportItem> getReportItems() {
30
        if (!reportItems.isEmpty()) {
31
            return reportItems;
32
        }
33
        return null;
34
    }
35
}
(2-2/18)