de.umass.lastfm.scrobble
Class SubmissionData

java.lang.Object
  extended by de.umass.lastfm.scrobble.SubmissionData

Deprecated. The 1.2.x scrobble protocol has now been deprecated in favour of the 2.0 protocol which is part of the Last.fm web services API.

@Deprecated
public class SubmissionData
extends Object

Bean that contains track information.

Author:
Janni Kovacs
See Also:
ScrobbleData, Track.scrobble(ScrobbleData, de.umass.lastfm.Session)

Constructor Summary
SubmissionData(String s)
          Deprecated. Creates a new SubmissionData object based on a String returned by toString().
SubmissionData(String artist, String track, String album, int length, int tracknumber, Source source, long startTime)
          Deprecated.  
SubmissionData(String artist, String track, String album, int length, int tracknumber, Source source, Rating rating, long startTime)
          Deprecated.  
SubmissionData(String artist, String track, String album, int length, int tracknumber, Source source, Rating rating, long startTime, String recommendationKey)
          Deprecated.  
 
Method Summary
 String toString()
          Deprecated. Returns a String representation of this submission with the fields separated by &.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubmissionData

public SubmissionData(String artist,
                      String track,
                      String album,
                      int length,
                      int tracknumber,
                      Source source,
                      long startTime)
Deprecated. 

SubmissionData

public SubmissionData(String artist,
                      String track,
                      String album,
                      int length,
                      int tracknumber,
                      Source source,
                      Rating rating,
                      long startTime)
Deprecated. 

SubmissionData

public SubmissionData(String artist,
                      String track,
                      String album,
                      int length,
                      int tracknumber,
                      Source source,
                      Rating rating,
                      long startTime,
                      String recommendationKey)
Deprecated. 

SubmissionData

public SubmissionData(String s)
Deprecated. 
Creates a new SubmissionData object based on a String returned by toString().

Parameters:
s - A String
Method Detail

toString

public String toString()
Deprecated. 
Returns a String representation of this submission with the fields separated by &. Order of the fields is:
artist&track&startTime&Source&RecommendationKey&Rating&length&album&tracknumber
Note that: - Values may possibly be null or empty - enum values such as Rating and Source are null or their constant name is used (i.e. "LOVE") - all string values (artist, track, album) are utf8-url-encoded

Overrides:
toString in class Object
Returns:
a String