Record Class InitRequest
java.lang.Object
java.lang.Record
me.rochblondiaux.gameanalytics.request.InitRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the value of thebuildrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theosVersionrecord component.platform()Returns the value of theplatformrecord component.Returns the value of therandomSaltrecord component.Returns the value of thesdkVersionrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
InitRequest
public InitRequest(String userId, String platform, String osVersion, String build, String sdkVersion, String randomSalt) Creates an instance of aInitRequestrecord class.- Parameters:
userId- the value for theuserIdrecord componentplatform- the value for theplatformrecord componentosVersion- the value for theosVersionrecord componentbuild- the value for thebuildrecord componentsdkVersion- the value for thesdkVersionrecord componentrandomSalt- the value for therandomSaltrecord 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 withObjects::equals(Object,Object). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
osVersion
Returns the value of theosVersionrecord component.- Returns:
- the value of the
osVersionrecord component
-
build
Returns the value of thebuildrecord component.- Returns:
- the value of the
buildrecord component
-
sdkVersion
Returns the value of thesdkVersionrecord component.- Returns:
- the value of the
sdkVersionrecord component
-
randomSalt
Returns the value of therandomSaltrecord component.- Returns:
- the value of the
randomSaltrecord component
-