de.umass.lastfm
Class Tasteometer

java.lang.Object
  extended byde.umass.lastfm.Tasteometer

public class Tasteometer
extends Object

Provides the binding for the "tasteometer.compare" method.

Author:
Janni Kovacs

Nested Class Summary
static class Tasteometer.ComparisonResult
          Contains the result of a tasteometer comparison, i.e.
 
Field Summary
static int ARTISTS
           
static int MYSPACE
           
static int USER
          Specifies the type of the input for the Tasteometer.compare operation.
 
Method Summary
static Tasteometer.ComparisonResult compare(int type1, String value1, int type2, String value2, String apiKey)
          Get a Tasteometer score from two inputs, along with a list of shared artists.
static String InputType_name(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

public static final int USER
Specifies the type of the input for the Tasteometer.compare operation.

See Also:
Constant Field Values

ARTISTS

public static final int ARTISTS
See Also:
Constant Field Values

MYSPACE

public static final int MYSPACE
See Also:
Constant Field Values
Method Detail

compare

public static Tasteometer.ComparisonResult compare(int type1,
                                                   String value1,
                                                   int type2,
                                                   String value2,
                                                   String apiKey)
Get a Tasteometer score from two inputs, along with a list of shared artists.

Parameters:
type1 - Type of the first input
value1 - First input value
type2 - Type of the second input
value2 - Second input value
apiKey - The Last.fm API key
Returns:
result of Tasteometer comparison

InputType_name

public static final String InputType_name(int type)