Package org.localify.user.dto
Class UserCityFestivalContainer
java.lang.Object
org.localify.user.dto.UserCityFestivalContainer
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UserCityContainer,UserFestivalContainer
Represents a container for a user's city or festival. This is an abstract class that is extended by
UserCityContainer and UserFestivalContainer.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserCityFestivalContainer(UUID id, String name, Instant selectedAt, String spotifyPlaylist) Constructs a new UserCityFestivalContainer. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the ID of the city or festival.getName()Gets the name of the city or festival.Gets the time the city or festival was selected.Gets the Spotify playlist for the city or festival.voidSets the ID of the city or festival.voidSets the name of the city or festival.voidsetSelectedAt(Instant selectedAt) Sets the time the city or festival was selected.voidsetSpotifyPlaylist(String spotifyPlaylist) Sets the Spotify playlist for the city or festival.
-
Constructor Details
-
UserCityFestivalContainer
Constructs a new UserCityFestivalContainer.- Parameters:
id- The ID of the city or festival.name- The name of the city or festival.selectedAt- The time the city or festival was selected.spotifyPlaylist- The Spotify playlist for the city or festival.
-
-
Method Details
-
getId
Gets the ID of the city or festival.- Returns:
- The ID.
-
setId
Sets the ID of the city or festival.- Parameters:
id- The ID.
-
getName
Gets the name of the city or festival.- Returns:
- The name.
-
setName
Sets the name of the city or festival.- Parameters:
name- The name.
-
getSelectedAt
Gets the time the city or festival was selected.- Returns:
- The selection time.
-
setSelectedAt
Sets the time the city or festival was selected.- Parameters:
selectedAt- The selection time.
-
getSpotifyPlaylist
Gets the Spotify playlist for the city or festival.- Returns:
- The Spotify playlist.
-
setSpotifyPlaylist
Sets the Spotify playlist for the city or festival.- Parameters:
spotifyPlaylist- The Spotify playlist.
-