kinyerakenneth / lastfm-java

Automatically exported from code.google.com/p/lastfm-java
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

getTopTags should me moved to MusicEntry #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a method that expects a MusicEntry such as getCommonTags(MusicEntry 
me1, MusicEntry me2)
2. Try to gather top tags for me1 i.e. me1.getTopTags()
3.

What is the expected output? What do you see instead?
top tags for the object.

What version of the product are you using? On what operating system?
Latest one downloaded on 04/26/2011, JDK 1.6

Please provide any additional information below.
getTopTags is present in all the classes that extend MusicEntry (Album, Artist 
and Track). It should be an abstract method in MusicEntry class.

Original issue reported on code.google.com by pauloand...@gmail.com on 27 Apr 2011 at 11:37

GoogleCodeExporter commented 9 years ago
There's a getTags() method in MusicEntry, which returns the "top tags" that are 
retrieved in any Artist, Track or Album.getInfo() call. Is this what you're 
looking for?
The getTopTags methods are actually static, because they are invoking the 
artist/album/track.getTopTags webservice respectively. The API is currently not 
designed to work in the way you described (You can't initialize a data object 
like Artist manually, methods that invoke web services are static)

Original comment by jannikov...@gmail.com on 28 Apr 2011 at 5:06

GoogleCodeExporter commented 9 years ago
Closing this now as we've not received a response. See above for more 
information.

Original comment by jannikov...@gmail.com on 5 Jul 2011 at 10:17