Subversion Repositories SmartDukaan

Rev

Rev 36509 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36509 Rev 36525
Line 12... Line 12...
12
    private String brand;
12
    private String brand;
13
    private long unitCount;
13
    private long unitCount;
14
    private double totalEarned;
14
    private double totalEarned;
15
 
15
 
16
    public SchemeEarningModel(int schemeId, String schemeName, String schemeType, String brand,
16
    public SchemeEarningModel(int schemeId, String schemeName, String schemeType, String brand,
17
                              Long unitCount, Long totalEarned) {
17
                              Long unitCount, Double totalEarned) {
18
        this.schemeId = schemeId;
18
        this.schemeId = schemeId;
19
        this.schemeName = schemeName;
19
        this.schemeName = schemeName;
20
        this.schemeType = schemeType;
20
        this.schemeType = schemeType;
21
        this.brand = brand;
21
        this.brand = brand;
22
        this.unitCount = unitCount != null ? unitCount : 0;
22
        this.unitCount = unitCount != null ? unitCount : 0L;
23
        this.totalEarned = totalEarned != null ? totalEarned : 0;
23
        this.totalEarned = totalEarned != null ? totalEarned : 0.0;
24
    }
24
    }
25
 
25
 
26
    public int getSchemeId() { return schemeId; }
26
    public int getSchemeId() { return schemeId; }
27
    public void setSchemeId(int schemeId) { this.schemeId = schemeId; }
27
    public void setSchemeId(int schemeId) { this.schemeId = schemeId; }
28
 
28