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

    Constructors
    Constructor
    Description
    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 a StatsResponse record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the chatsCount record component.
    int
    Returns the value of the deathCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the firstSeen record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the joinCount record component.
    int
    Returns the value of the killCount record component.
    Returns the value of the lastSeen record component.
    int
    Returns the value of the leaveCount record component.
    int
    Returns the value of the playtimeSeconds record component.
    int
    Returns the value of the playtimeSecondsMonth record component.
    boolean
    Returns the value of the prio record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a StatsResponse record class.
      Parameters:
      joinCount - the value for the joinCount record component
      leaveCount - the value for the leaveCount record component
      deathCount - the value for the deathCount record component
      killCount - the value for the killCount record component
      firstSeen - the value for the firstSeen record component
      lastSeen - the value for the lastSeen record component
      playtimeSeconds - the value for the playtimeSeconds record component
      playtimeSecondsMonth - the value for the playtimeSecondsMonth record component
      chatsCount - the value for the chatsCount record component
      prio - the value for the prio record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • joinCount

      public int joinCount()
      Returns the value of the joinCount record component.
      Returns:
      the value of the joinCount record component
    • leaveCount

      public int leaveCount()
      Returns the value of the leaveCount record component.
      Returns:
      the value of the leaveCount record component
    • deathCount

      public int deathCount()
      Returns the value of the deathCount record component.
      Returns:
      the value of the deathCount record component
    • killCount

      public int killCount()
      Returns the value of the killCount record component.
      Returns:
      the value of the killCount record component
    • firstSeen

      public OffsetDateTime firstSeen()
      Returns the value of the firstSeen record component.
      Returns:
      the value of the firstSeen record component
    • lastSeen

      public OffsetDateTime lastSeen()
      Returns the value of the lastSeen record component.
      Returns:
      the value of the lastSeen record component
    • playtimeSeconds

      public int playtimeSeconds()
      Returns the value of the playtimeSeconds record component.
      Returns:
      the value of the playtimeSeconds record component
    • playtimeSecondsMonth

      public int playtimeSecondsMonth()
      Returns the value of the playtimeSecondsMonth record component.
      Returns:
      the value of the playtimeSecondsMonth record component
    • chatsCount

      public int chatsCount()
      Returns the value of the chatsCount record component.
      Returns:
      the value of the chatsCount record component
    • prio

      public boolean prio()
      Returns the value of the prio record component.
      Returns:
      the value of the prio record component