Subversion Repositories SmartDukaan

Rev

Rev 2418 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2262 vikas 1
package in.shop2020.datalogger.event;
2
 
3
public class ProductView extends Event{
4
 
5
    private String productName;
6
 
7
    public ProductView(String[] eventFileds) {
8
        super(eventFileds);
9
        productName = eventFileds[5].trim();
10
    }
11
 
12
    public String toString() {
13
        StringBuilder sb = new StringBuilder();
14
        sb.append(eventType.name() + ", ");
15
        sb.append("userEmail : " + userEmail);
16
        sb.append(" productName : " + productName);
17
        sb.append(" time : " + time);
18
        sb.append(" session : " + sessionId);
19
 
20
        return sb.toString();
21
    }
22
 
23
    public String getProductName() {
24
        return productName;
25
    }
26
 
27
    public void setProductName(String productName) {
28
        this.productName = productName;
29
    }
30
}