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; } }