Class UserCityFestivalContainer

java.lang.Object
org.localify.user.dto.UserCityFestivalContainer
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UserCityContainer, UserFestivalContainer

public abstract class UserCityFestivalContainer extends Object implements Serializable
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 Details

    • UserCityFestivalContainer

      public UserCityFestivalContainer(UUID id, String name, Instant selectedAt, String spotifyPlaylist)
      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

      public UUID getId()
      Gets the ID of the city or festival.
      Returns:
      The ID.
    • setId

      public void setId(UUID id)
      Sets the ID of the city or festival.
      Parameters:
      id - The ID.
    • getName

      public String getName()
      Gets the name of the city or festival.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Sets the name of the city or festival.
      Parameters:
      name - The name.
    • getSelectedAt

      public Instant getSelectedAt()
      Gets the time the city or festival was selected.
      Returns:
      The selection time.
    • setSelectedAt

      public void setSelectedAt(Instant selectedAt)
      Sets the time the city or festival was selected.
      Parameters:
      selectedAt - The selection time.
    • getSpotifyPlaylist

      public String getSpotifyPlaylist()
      Gets the Spotify playlist for the city or festival.
      Returns:
      The Spotify playlist.
    • setSpotifyPlaylist

      public void setSpotifyPlaylist(String spotifyPlaylist)
      Sets the Spotify playlist for the city or festival.
      Parameters:
      spotifyPlaylist - The Spotify playlist.