Package org.localify.user.dto
Class UserCityContainer
java.lang.Object
org.localify.user.dto.UserCityFestivalContainer
org.localify.user.dto.UserCityContainer
- All Implemented Interfaces:
Serializable
Represents a user's city.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserCityContainer(UUID id, String name, String zoneCode, CitySelectionTimeFrame timeFrame, Instant startDate, Instant endDate, Double radius, Instant selectedAt, RecSortSetting sortBy, String spotifyPlaylist, String countryCode) Constructs a new UserCityContainer. -
Method Summary
Modifier and TypeMethodDescriptionGets the country code of the city.Gets the end date for the city selection.Gets the radius for the city selection.Gets the sort setting for recommendations.Gets the start date for the city selection.Gets the time frame for the city selection.Gets the zone code of the city.voidsetCountryCode(String countryCode) Sets the country code of the city.voidsetEndDate(Instant endDate) Sets the end date for the city selection.voidSets the radius for the city selection.voidsetSortBy(RecSortSetting sortBy) Sets the sort setting for recommendations.voidsetStartDate(Instant startDate) Sets the start date for the city selection.voidsetTimeFrame(CitySelectionTimeFrame timeFrame) Sets the time frame for the city selection.voidsetZoneCode(String zoneCode) Sets the zone code of the city.Methods inherited from class org.localify.user.dto.UserCityFestivalContainer
getId, getName, getSelectedAt, getSpotifyPlaylist, setId, setName, setSelectedAt, setSpotifyPlaylist
-
Constructor Details
-
UserCityContainer
public UserCityContainer(UUID id, String name, String zoneCode, CitySelectionTimeFrame timeFrame, Instant startDate, Instant endDate, Double radius, Instant selectedAt, RecSortSetting sortBy, String spotifyPlaylist, String countryCode) Constructs a new UserCityContainer.- Parameters:
id- The ID of the city.name- The name of the city.zoneCode- The zone code of the city.timeFrame- The time frame for the city selection.startDate- The start date for the city selection.endDate- The end date for the city selection.radius- The radius for the city selection.selectedAt- The time the city was selected.sortBy- The sort setting for recommendations.spotifyPlaylist- The Spotify playlist for the city.countryCode- The country code of the city.
-
-
Method Details
-
getZoneCode
Gets the zone code of the city.- Returns:
- The zone code.
-
setZoneCode
Sets the zone code of the city.- Parameters:
zoneCode- The zone code.
-
getCountryCode
Gets the country code of the city.- Returns:
- The country code.
-
setCountryCode
Sets the country code of the city.- Parameters:
countryCode- The country code.
-
getTimeFrame
Gets the time frame for the city selection.- Returns:
- The time frame.
-
setTimeFrame
Sets the time frame for the city selection.- Parameters:
timeFrame- The time frame.
-
getStartDate
Gets the start date for the city selection.- Returns:
- The start date.
-
setStartDate
Sets the start date for the city selection.- Parameters:
startDate- The start date.
-
getEndDate
Gets the end date for the city selection.- Returns:
- The end date.
-
setEndDate
Sets the end date for the city selection.- Parameters:
endDate- The end date.
-
getRadius
Gets the radius for the city selection.- Returns:
- The radius.
-
setRadius
Sets the radius for the city selection.- Parameters:
radius- The radius.
-
getSortBy
Gets the sort setting for recommendations.- Returns:
- The sort setting.
-
setSortBy
Sets the sort setting for recommendations.- Parameters:
sortBy- The sort setting.
-