Record Class DashViewStatsResponse
java.lang.Object
java.lang.Record
org.localify.dashboard.dto.response.DashViewStatsResponse
- Record Components:
artistViews- The statistics for artist views.eventViews- The statistics for event views.venueViews- The statistics for venue views.cityViews- The statistics for city views.
public record DashViewStatsResponse(TimeStatsContainer artistViews, TimeStatsContainer eventViews, TimeStatsContainer venueViews, TimeStatsContainer cityViews)
extends Record
Represents the response for view statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionDashViewStatsResponse(TimeStatsContainer artistViews, TimeStatsContainer eventViews, TimeStatsContainer venueViews, TimeStatsContainer cityViews) Creates an instance of aDashViewStatsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartistViewsrecord component.Returns the value of thecityViewsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventViewsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thevenueViewsrecord component.
-
Constructor Details
-
DashViewStatsResponse
public DashViewStatsResponse(TimeStatsContainer artistViews, TimeStatsContainer eventViews, TimeStatsContainer venueViews, TimeStatsContainer cityViews) Creates an instance of aDashViewStatsResponserecord class.- Parameters:
artistViews- the value for theartistViewsrecord componenteventViews- the value for theeventViewsrecord componentvenueViews- the value for thevenueViewsrecord componentcityViews- the value for thecityViewsrecord 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). -
artistViews
Returns the value of theartistViewsrecord component.- Returns:
- the value of the
artistViewsrecord component
-
eventViews
Returns the value of theeventViewsrecord component.- Returns:
- the value of the
eventViewsrecord component
-
venueViews
Returns the value of thevenueViewsrecord component.- Returns:
- the value of the
venueViewsrecord component
-
cityViews
Returns the value of thecityViewsrecord component.- Returns:
- the value of the
cityViewsrecord component
-