Connected to Event Collector

This commit is contained in:
2026-01-11 13:33:53 +01:00
parent b18e21d4c7
commit 82af52f15a
5 changed files with 156 additions and 3 deletions

View File

@@ -0,0 +1,42 @@
package dev.mednikov.social.connections.messaging;
import java.time.LocalDateTime;
final class AnalyticsEvent {
private String userId;
private String eventType;
private String timestamp;
AnalyticsEvent (){}
AnalyticsEvent(Long userId, String eventType){
this.userId = userId.toString();
this.eventType = eventType;
this.timestamp = LocalDateTime.now().toString();
}
String getUserId() {
return userId;
}
void setUserId(String userId) {
this.userId = userId;
}
String getEventType() {
return eventType;
}
void setEventType(String eventType) {
this.eventType = eventType;
}
String getTimestamp() {
return timestamp;
}
void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
}