package org.kalipo.web.websocket.dto; /** * DTO for storing a user's activity. */ public class ActivityDTO { private String uuid; private String userLogin; private String ipAddress; private String page; private String time; public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public String getUserLogin() { return userLogin; } public void setUserLogin(String userLogin) { this.userLogin = userLogin; } public String getIpAddress() { return ipAddress; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } public String getPage() { return page; } public void setPage(String page) { this.page = page; } public String getTime() { return time; } public void setTime(String time) { this.time = time; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ActivityDTO that = (ActivityDTO) o; return !(uuid != null ? !uuid.equals(that.uuid) : that.uuid != null); } @Override public int hashCode() { return uuid != null ? uuid.hashCode() : 0; } }