Package org.localify.dto
Record Class SearchApiResponse
java.lang.Object
java.lang.Record
org.localify.dto.SearchApiResponse
- Record Components:
artists- A list of artists matching the search query.events- A list of events matching the search query.venues- A list of venues matching the search query.cities- A list of cities matching the search query.festivals- A list of festivals matching the search query.
public record SearchApiResponse(List<BasicArtistResponse> artists, List<EventResponse> events, List<VenueResponse> venues, List<CityResponse> cities, List<FestivalResponse> festivals)
extends Record
Represents the response from a search API call.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchApiResponse(List<BasicArtistResponse> artists, List<EventResponse> events, List<VenueResponse> venues, List<CityResponse> cities, List<FestivalResponse> festivals) Creates an instance of aSearchApiResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionartists()Returns the value of theartistsrecord component.cities()Returns the value of thecitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.Returns the value of thefestivalsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.venues()Returns the value of thevenuesrecord component.
-
Constructor Details
-
SearchApiResponse
public SearchApiResponse(List<BasicArtistResponse> artists, List<EventResponse> events, List<VenueResponse> venues, List<CityResponse> cities, List<FestivalResponse> festivals) Creates an instance of aSearchApiResponserecord class.
-
-
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). -
artists
Returns the value of theartistsrecord component.- Returns:
- the value of the
artistsrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
venues
Returns the value of thevenuesrecord component.- Returns:
- the value of the
venuesrecord component
-
cities
Returns the value of thecitiesrecord component.- Returns:
- the value of the
citiesrecord component
-
festivals
Returns the value of thefestivalsrecord component.- Returns:
- the value of the
festivalsrecord component
-