com.cutunes.server
Class SongData

java.lang.Object
  extended bycom.cutunes.server.SongData

public class SongData
extends java.lang.Object

SongData object is a simple construction designed to nicely abstract a given songs information into a simple object that can be easily passed between methods (and over XML-RPC).

Author:
blake

Constructor Summary
SongData(java.util.Hashtable h)
          Construct takes a Hashtable and extracts all wanted information into separate Strings, ints, Timestamps, etc.
 
Method Summary
 java.lang.String getHasSongInfo(int userID)
          Debugging method returns nicely formatted information about a the last played date and play count for a given user for this song.
 java.lang.String getSongInfo()
          Debugging method returns nicely formatted information about a given song.
 java.lang.String toString()
          Debugging method prints out some information about the song.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SongData

public SongData(java.util.Hashtable h)
Construct takes a Hashtable and extracts all wanted information into separate Strings, ints, Timestamps, etc.

Parameters:
h - Hashtable containing all song information
Method Detail

getSongInfo

public java.lang.String getSongInfo()
Debugging method returns nicely formatted information about a given song.

Returns:
Formatted String describing a given song

getHasSongInfo

public java.lang.String getHasSongInfo(int userID)
Debugging method returns nicely formatted information about a the last played date and play count for a given user for this song.

Returns:
Formatted String describing has_song information

toString

public java.lang.String toString()
Debugging method prints out some information about the song.