Created
March 15, 2020 13:57
-
-
Save balvinder294/f3167240c7dd5aa4a387535e7c230198 to your computer and use it in GitHub Desktop.
Sample DTO for Jhipster User Tracking Activity Data handling -- Tekraze.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tekraze.kafka.web.websocket.dto; | |
import java.time.Instant; | |
/** | |
* DTO for storing a user's activity. | |
*/ | |
public class ActivityDTO { | |
private String sessionId; | |
private String userLogin; | |
private String ipAddress; | |
private String page; | |
private Instant time; | |
public String getSessionId() { | |
return sessionId; | |
} | |
public void setSessionId(String sessionId) { | |
this.sessionId = sessionId; | |
} | |
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 Instant getTime() { | |
return time; | |
} | |
public void setTime(Instant time) { | |
this.time = time; | |
} | |
@Override | |
public String toString() { | |
return "ActivityDTO{" + | |
"sessionId='" + sessionId + '\'' + | |
", userLogin='" + userLogin + '\'' + | |
", ipAddress='" + ipAddress + '\'' + | |
", page='" + page + '\'' + | |
", time='" + time + '\'' + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment