com.vaadin.copilot.analytics.
Record Class AnalyticsRequest
Record Components:
userId
- user identifier for Amplitude
anonymousId
- identifier of anonymous user, can be machineId
event
- Event name
properties
- Event properties
context
- Event context properties
Tracking request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the
anonymousId
record component.context()
Returns the value of the
context
record component.final boolean
Indicates whether some other object is "equal to" this one.
event()
Returns the value of the
event
record component.final int
hashCode()
Returns a hash code value for this object.
Returns the value of the
properties
record component.final String
toString()
Returns a string representation of this record class.
userId()
Returns the value of the
userId
record component.
-
Constructor Details
-
AnalyticsRequest
public AnalyticsRequest(String userId, String anonymousId, String event, Map<String, String> properties, Map<String, String> context) Creates an instance of a
AnalyticsRequest
record class.Parameters:
userId
- the value for theuserId
record componentanonymousId
- the value for theanonymousId
record componentevent
- the value for theevent
record componentproperties
- the value for theproperties
record componentcontext
- the value for thecontext
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with
Objects::equals(Object,Object)
. -
userId
Returns the value of the
userId
record component.Returns:
the value of the
userId
record component -
anonymousId
Returns the value of the
anonymousId
record component.Returns:
the value of the
anonymousId
record component -
event
Returns the value of the
event
record component.Returns:
the value of the
event
record component -
properties
Returns the value of the
properties
record component.Returns:
the value of the
properties
record component -
context
Returns the value of the
context
record component.Returns:
the value of the
context
record component
-