Record Class InitResponse
java.lang.Object
java.lang.Record
me.rochblondiaux.gameanalytics.response.InitResponse
-
Constructor Summary
ConstructorsConstructorDescriptionInitResponse(long serverTimestamp, List<ConfigEntry> entries, String key, String value, long startTimestamp, long endTimestamp, String configHash, String abId, String abValue) Creates an instance of aInitResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionabId()Returns the value of theabIdrecord component.abValue()Returns the value of theabValuerecord component.Returns the value of theconfigHashrecord component.longReturns the value of theendTimestamprecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.longReturns the value of theserverTimestamprecord component.longReturns the value of thestartTimestamprecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
InitResponse
public InitResponse(long serverTimestamp, List<ConfigEntry> entries, String key, String value, long startTimestamp, long endTimestamp, String configHash, String abId, String abValue) Creates an instance of aInitResponserecord class.- Parameters:
serverTimestamp- the value for theserverTimestamprecord componententries- the value for theentriesrecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord componentstartTimestamp- the value for thestartTimestamprecord componentendTimestamp- the value for theendTimestamprecord componentconfigHash- the value for theconfigHashrecord componentabId- the value for theabIdrecord componentabValue- the value for theabValuerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
serverTimestamp
@SerializedName("server_ts") public long serverTimestamp()Returns the value of theserverTimestamprecord component.- Returns:
- the value of the
serverTimestamprecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
startTimestamp
@SerializedName("start_ts") public long startTimestamp()Returns the value of thestartTimestamprecord component.- Returns:
- the value of the
startTimestamprecord component
-
endTimestamp
@SerializedName("end_ts") public long endTimestamp()Returns the value of theendTimestamprecord component.- Returns:
- the value of the
endTimestamprecord component
-
configHash
Returns the value of theconfigHashrecord component.- Returns:
- the value of the
configHashrecord component
-
abId
Returns the value of theabIdrecord component.- Returns:
- the value of the
abIdrecord component
-
abValue
Returns the value of theabValuerecord component.- Returns:
- the value of the
abValuerecord component
-