Package org.localify.user.dto
Class UserFestivalContainer
java.lang.Object
org.localify.user.dto.UserCityFestivalContainer
org.localify.user.dto.UserFestivalContainer
- All Implemented Interfaces:
Serializable
Represents a user's festival.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserFestivalContainer(UUID id, String name, Instant selectedAt, String spotifyPlaylist, String nickName, CityResponse city) Constructs a new UserFestivalContainer. -
Method Summary
Modifier and TypeMethodDescriptiongetCity()Gets the city where the festival is located.Gets the nickname of the festival.voidsetCity(CityResponse city) Sets the city where the festival is located.voidsetNickName(String nickName) Sets the nickname of the festival.Methods inherited from class org.localify.user.dto.UserCityFestivalContainer
getId, getName, getSelectedAt, getSpotifyPlaylist, setId, setName, setSelectedAt, setSpotifyPlaylist
-
Constructor Details
-
UserFestivalContainer
public UserFestivalContainer(UUID id, String name, Instant selectedAt, String spotifyPlaylist, String nickName, CityResponse city) Constructs a new UserFestivalContainer.- Parameters:
id- The ID of the festival.name- The name of the festival.selectedAt- The time the festival was selected.spotifyPlaylist- The Spotify playlist for the festival.nickName- The nickname of the festival.city- The city where the festival is located.
-
-
Method Details
-
getNickName
Gets the nickname of the festival.- Returns:
- The nickname.
-
setNickName
Sets the nickname of the festival.- Parameters:
nickName- The nickname.
-
getCity
Gets the city where the festival is located.- Returns:
- The city.
-
setCity
Sets the city where the festival is located.- Parameters:
city- The city.
-