com.breeweb.slimconnect.data
Class Song

java.lang.Object
  extended bycom.breeweb.slimconnect.data.Song

public class Song
extends java.lang.Object

Song class represents a song within the Squeezebox server / player or playlist.

Author:
Bas de Bree

Constructor Summary
Song(java.lang.String genre, java.lang.String artist, java.lang.String album, java.lang.String title, java.lang.String duration, java.lang.String path)
          Creates a song representing the (current) song playing by the slimp3player
 
Method Summary
 boolean equals(java.lang.Object aObject)
           
 java.lang.String getAlbum()
           
 java.lang.String getArtist()
           
 java.lang.String getDuration()
           
 java.lang.String getGenre()
           
 java.lang.String getPath()
           
 java.lang.String getTitle()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Song

public Song(java.lang.String genre,
            java.lang.String artist,
            java.lang.String album,
            java.lang.String title,
            java.lang.String duration,
            java.lang.String path)
Creates a song representing the (current) song playing by the slimp3player

Parameters:
genre - the genre
artist - the artist
album - the album
title - the title
duration - the duration in seconds
path - the path to where this song is located.
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object aObject)

getAlbum

public java.lang.String getAlbum()
Returns:
Returns the album.

getArtist

public java.lang.String getArtist()
Returns:
Returns the artist.

getDuration

public java.lang.String getDuration()
Returns:
Returns the duration.

getGenre

public java.lang.String getGenre()
Returns:
Returns the genre.

getPath

public java.lang.String getPath()
Returns:
Returns the path.

getTitle

public java.lang.String getTitle()
Returns:
Returns the title.