Record Class PlaytimeResponse
java.lang.Object
java.lang.Record
com.zenith.feature.api.vcapi.model.PlaytimeResponse
-
Constructor Summary
ConstructorsConstructorDescriptionPlaytimeResponse(UUID uuid, int playtimeSeconds) Creates an instance of aPlaytimeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theplaytimeSecondsrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
PlaytimeResponse
Creates an instance of aPlaytimeResponserecord class.- Parameters:
uuid- the value for theuuidrecord componentplaytimeSeconds- the value for theplaytimeSecondsrecord 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. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
playtimeSeconds
public int playtimeSeconds()Returns the value of theplaytimeSecondsrecord component.- Returns:
- the value of the
playtimeSecondsrecord component
-