Record Class TelemetryEventsRequest.Event
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.request.TelemetryEventsRequest.Event
- Enclosing class:
TelemetryEventsRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.gson.JsonObjectThe field for thedatarecord component.private final StringThe field for thenamerecord component.private final StringThe field for thesourcerecord component.private final longThe field for thetimestamprecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectdata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.source()Returns the value of thesourcerecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
source
The field for thesourcerecord component. -
name
The field for thenamerecord component. -
timestamp
@SerializedName("timestamp") private final long timestampThe field for thetimestamprecord component. -
data
@SerializedName("data") private final com.google.gson.JsonObject dataThe field for thedatarecord component.
-
-
Constructor Details
-
Event
-
Event
Creates an instance of aEventrecord class.- Parameters:
source- the value for thesourcerecord componentname- the value for thenamerecord componenttimestamp- the value for thetimestamprecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
timestamp
@SerializedName("timestamp") public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
data
@SerializedName("data") public com.google.gson.JsonObject data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-