Record Class DashEventsCreatedResponse
java.lang.Object
java.lang.Record
org.localify.dashboard.dto.response.DashEventsCreatedResponse
- Record Components:
bandsInTown- The statistics for events created from BandsInTown.google- The statistics for events created from Google.spotify- The statistics for events created from Spotify.pollstar- The statistics for events created from Pollstar.
public record DashEventsCreatedResponse(TimeStatsContainer bandsInTown, TimeStatsContainer google, TimeStatsContainer spotify, TimeStatsContainer pollstar)
extends Record
Represents the response for the number of events created from different sources.
-
Constructor Summary
ConstructorsConstructorDescriptionDashEventsCreatedResponse(TimeStatsContainer bandsInTown, TimeStatsContainer google, TimeStatsContainer spotify, TimeStatsContainer pollstar) Creates an instance of aDashEventsCreatedResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebandsInTownrecord component.final booleanIndicates whether some other object is "equal to" this one.google()Returns the value of thegooglerecord component.final inthashCode()Returns a hash code value for this object.pollstar()Returns the value of thepollstarrecord component.spotify()Returns the value of thespotifyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DashEventsCreatedResponse
public DashEventsCreatedResponse(TimeStatsContainer bandsInTown, TimeStatsContainer google, TimeStatsContainer spotify, TimeStatsContainer pollstar) Creates an instance of aDashEventsCreatedResponserecord class.- Parameters:
bandsInTown- the value for thebandsInTownrecord componentgoogle- the value for thegooglerecord componentspotify- the value for thespotifyrecord componentpollstar- the value for thepollstarrecord 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). -
bandsInTown
Returns the value of thebandsInTownrecord component.- Returns:
- the value of the
bandsInTownrecord component
-
google
Returns the value of thegooglerecord component.- Returns:
- the value of the
googlerecord component
-
spotify
Returns the value of thespotifyrecord component.- Returns:
- the value of the
spotifyrecord component
-
pollstar
Returns the value of thepollstarrecord component.- Returns:
- the value of the
pollstarrecord component
-