Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.datalogger.event;public class ProductSearch extends Event{private String query;private Long categoryId;private Long totalResults;public ProductSearch(String[] eventFileds) {super(eventFileds);query = eventFileds[5].trim();categoryId = Long.parseLong(eventFileds[6].trim());totalResults = Long.parseLong(eventFileds[7].trim());}public String toString() {StringBuilder sb = new StringBuilder();sb.append(eventType.name() + ", ");sb.append("userEmail : " + userEmail);sb.append(" query : " + query);sb.append(" CategoryId : " + categoryId);sb.append(" totalResults : " + totalResults);sb.append(" time : " + time);sb.append(" session : " + sessionId);return sb.toString();}public String getQuery() {return query;}public void setQuery(String query) {this.query = query;}public Long getCategoryId() {return categoryId;}public void setCategoryId(Long categoryId) {this.categoryId = categoryId;}public Long getTotalResult() {return totalResults;}public void setTotalResult(Long totalResult) {this.totalResults = totalResult;}}