Class PlaylistSongPair

java.lang.Object
org.localify.playlist.PlaylistSongPair

@Entity public class PlaylistSongPair extends Object
Represents a pair of songs in a playlist, one from a local artist and one from a seed artist.
  • Constructor Details

    • PlaylistSongPair

      protected PlaylistSongPair()
      Protected no-arg constructor for JPA.
    • PlaylistSongPair

      public PlaylistSongPair(Playlist playlist, int position, Artist localArtist, Song localSong, Artist seedArtist, Song seedSong)
      Constructs a new PlaylistSongPair.
      Parameters:
      playlist - The playlist.
      position - The position of the song pair in the playlist.
      localArtist - The local artist.
      localSong - The local song.
      seedArtist - The seed artist.
      seedSong - The seed song.
    • PlaylistSongPair

      public PlaylistSongPair(Playlist playlist, int position, Artist localArtist, Song localSong, Artist seedArtist, Song seedSong, Song localSong2, Song localSong3)
      Constructs a new PlaylistSongPair.
      Parameters:
      playlist - The playlist.
      position - The position of the song pair in the playlist.
      localArtist - The local artist.
      localSong - The local song.
      seedArtist - The seed artist.
      seedSong - The seed song.
      localSong2 - The second local song.
      localSong3 - The third local song.
  • Method Details

    • getPosition

      public int getPosition()
      Gets the position of the song pair in the playlist.
      Returns:
      The position.
    • getPlaylist

      public Playlist getPlaylist()
      Gets the playlist.
      Returns:
      The playlist.
    • setPlaylist

      public void setPlaylist(Playlist playlist)
      Sets the playlist.
      Parameters:
      playlist - The playlist.
    • getLocalArtist

      public Artist getLocalArtist()
      Gets the local artist.
      Returns:
      The local artist.
    • setLocalArtist

      public void setLocalArtist(Artist localArtist)
      Sets the local artist.
      Parameters:
      localArtist - The local artist.
    • getLocalSong

      public Song getLocalSong()
      Gets the local song.
      Returns:
      The local song.
    • setLocalSong

      public void setLocalSong(Song localSong)
      Sets the local song.
      Parameters:
      localSong - The local song.
    • getSeedSong

      public Song getSeedSong()
      Gets the seed song.
      Returns:
      The seed song.
    • setSeedSong

      public void setSeedSong(Song seedSong)
      Sets the seed song.
      Parameters:
      seedSong - The seed song.
    • getSeedArtist

      public Artist getSeedArtist()
      Gets the seed artist.
      Returns:
      The seed artist.
    • setSeedArtist

      public void setSeedArtist(Artist seedArtist)
      Sets the seed artist.
      Parameters:
      seedArtist - The seed artist.
    • getLocalSong2

      public Song getLocalSong2()
      Gets the second local song.
      Returns:
      The second local song.
    • getLocalSong3

      public Song getLocalSong3()
      Gets the third local song.
      Returns:
      The third local song.
    • setLocalSong2

      public void setLocalSong2(Song localSong2)
      Sets the second local song.
      Parameters:
      localSong2 - The second local song.
    • setLocalSong3

      public void setLocalSong3(Song localSong3)
      Sets the third local song.
      Parameters:
      localSong3 - The third local song.
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp.
      Returns:
      The creation timestamp.
    • getDeletedAt

      public Instant getDeletedAt()
      Gets the deleted timestamp.
      Returns:
      The deleted timestamp.
    • setDeletedAt

      public void setDeletedAt()
      Sets the deleted timestamp to now.