Record Class StatsResponse
java.lang.Object
java.lang.Record
com.zenith.feature.api.vcapi.model.StatsResponse
public record StatsResponse(int joinCount, int leaveCount, int deathCount, int killCount, OffsetDateTime firstSeen, OffsetDateTime lastSeen, int playtimeSeconds, int playtimeSecondsMonth, int chatsCount, boolean prio)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStatsResponse(int joinCount, int leaveCount, int deathCount, int killCount, OffsetDateTime firstSeen, OffsetDateTime lastSeen, int playtimeSeconds, int playtimeSecondsMonth, int chatsCount, boolean prio) Creates an instance of aStatsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechatsCountrecord component.intReturns the value of thedeathCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstSeenrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thejoinCountrecord component.intReturns the value of thekillCountrecord component.lastSeen()Returns the value of thelastSeenrecord component.intReturns the value of theleaveCountrecord component.intReturns the value of theplaytimeSecondsrecord component.intReturns the value of theplaytimeSecondsMonthrecord component.booleanprio()Returns the value of thepriorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatsResponse
public StatsResponse(int joinCount, int leaveCount, int deathCount, int killCount, OffsetDateTime firstSeen, OffsetDateTime lastSeen, int playtimeSeconds, int playtimeSecondsMonth, int chatsCount, boolean prio) Creates an instance of aStatsResponserecord class.- Parameters:
joinCount- the value for thejoinCountrecord componentleaveCount- the value for theleaveCountrecord componentdeathCount- the value for thedeathCountrecord componentkillCount- the value for thekillCountrecord componentfirstSeen- the value for thefirstSeenrecord componentlastSeen- the value for thelastSeenrecord componentplaytimeSeconds- the value for theplaytimeSecondsrecord componentplaytimeSecondsMonth- the value for theplaytimeSecondsMonthrecord componentchatsCount- the value for thechatsCountrecord componentprio- the value for thepriorecord 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. -
joinCount
public int joinCount()Returns the value of thejoinCountrecord component.- Returns:
- the value of the
joinCountrecord component
-
leaveCount
public int leaveCount()Returns the value of theleaveCountrecord component.- Returns:
- the value of the
leaveCountrecord component
-
deathCount
public int deathCount()Returns the value of thedeathCountrecord component.- Returns:
- the value of the
deathCountrecord component
-
killCount
public int killCount()Returns the value of thekillCountrecord component.- Returns:
- the value of the
killCountrecord component
-
firstSeen
Returns the value of thefirstSeenrecord component.- Returns:
- the value of the
firstSeenrecord component
-
lastSeen
Returns the value of thelastSeenrecord component.- Returns:
- the value of the
lastSeenrecord component
-
playtimeSeconds
public int playtimeSeconds()Returns the value of theplaytimeSecondsrecord component.- Returns:
- the value of the
playtimeSecondsrecord component
-
playtimeSecondsMonth
public int playtimeSecondsMonth()Returns the value of theplaytimeSecondsMonthrecord component.- Returns:
- the value of the
playtimeSecondsMonthrecord component
-
chatsCount
public int chatsCount()Returns the value of thechatsCountrecord component.- Returns:
- the value of the
chatsCountrecord component
-
prio
public boolean prio()Returns the value of thepriorecord component.- Returns:
- the value of the
priorecord component
-