net.roarsoftware.lastfm
Class Tasteometer

java.lang.Object
  extended by net.roarsoftware.lastfm.Tasteometer

public class Tasteometer
extends java.lang.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.
static class Tasteometer.InputType
          Specifies the type of the input for the Tasteometer.compare operation.
 
Method Summary
static Tasteometer.ComparisonResult compare(Tasteometer.InputType type1, java.lang.String value1, Tasteometer.InputType type2, java.lang.String value2, java.lang.String apiKey)
          Get a Tasteometer score from two inputs, along with a list of shared artists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public static Tasteometer.ComparisonResult compare(Tasteometer.InputType type1,
                                                   java.lang.String value1,
                                                   Tasteometer.InputType type2,
                                                   java.lang.String value2,
                                                   java.lang.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