Class UserCityContainer

java.lang.Object
org.localify.user.dto.UserCityFestivalContainer
org.localify.user.dto.UserCityContainer
All Implemented Interfaces:
Serializable

public class UserCityContainer extends UserCityFestivalContainer
Represents a user's city.
See Also:
  • 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

      public String getZoneCode()
      Gets the zone code of the city.
      Returns:
      The zone code.
    • setZoneCode

      public void setZoneCode(String zoneCode)
      Sets the zone code of the city.
      Parameters:
      zoneCode - The zone code.
    • getCountryCode

      public String getCountryCode()
      Gets the country code of the city.
      Returns:
      The country code.
    • setCountryCode

      public void setCountryCode(String countryCode)
      Sets the country code of the city.
      Parameters:
      countryCode - The country code.
    • getTimeFrame

      public CitySelectionTimeFrame getTimeFrame()
      Gets the time frame for the city selection.
      Returns:
      The time frame.
    • setTimeFrame

      public void setTimeFrame(CitySelectionTimeFrame timeFrame)
      Sets the time frame for the city selection.
      Parameters:
      timeFrame - The time frame.
    • getStartDate

      public Instant getStartDate()
      Gets the start date for the city selection.
      Returns:
      The start date.
    • setStartDate

      public void setStartDate(Instant startDate)
      Sets the start date for the city selection.
      Parameters:
      startDate - The start date.
    • getEndDate

      public Instant getEndDate()
      Gets the end date for the city selection.
      Returns:
      The end date.
    • setEndDate

      public void setEndDate(Instant endDate)
      Sets the end date for the city selection.
      Parameters:
      endDate - The end date.
    • getRadius

      public Double getRadius()
      Gets the radius for the city selection.
      Returns:
      The radius.
    • setRadius

      public void setRadius(Double radius)
      Sets the radius for the city selection.
      Parameters:
      radius - The radius.
    • getSortBy

      public RecSortSetting getSortBy()
      Gets the sort setting for recommendations.
      Returns:
      The sort setting.
    • setSortBy

      public void setSortBy(RecSortSetting sortBy)
      Sets the sort setting for recommendations.
      Parameters:
      sortBy - The sort setting.