|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBase.GroovesharkClient
public class GroovesharkClient
Field Summary | |
---|---|
GrooveFix |
HtmlShark
|
GrooveFix |
JSQueue
|
boolean |
UseGZip
|
Constructor Summary | |
---|---|
GroovesharkClient(boolean ConnectJustInTime)
Initialized the GroovesharkClient |
|
GroovesharkClient(boolean ConnectJustInTime,
java.lang.String GrooveFixData)
Initialized the GroovesharkClient with GrooveFixData from a String |
Method Summary | |
---|---|
void |
CheckConnect()
|
java.lang.String |
CommunicationToken()
|
GroovesharkCountry |
Country()
|
java.lang.String |
Cowbell()
|
GetArtistAutocomplete.GetArtistAutocompleteResponse |
GetArtistAutocomplete(java.lang.String search)
Searches for Artists beginning with your search |
GroovesharkAudioStream |
GetMusicStream(int SongId)
Gets the GroovesharkAudioStream from the songId If finished downloading call MarkSongAsDownloaded(), if not you will get problems downloading more songs! |
UserGetPlaylists.UserGetPlaylistsResponse |
GetPlaylists(int userId)
Get the playlists of a user |
PlaylistGetSongs.PlaylistGetSongsResponse |
GetPlaylistSongs(int playlistId)
Fetches the songs from a playlist |
ArtistGetSongs.ArtistGetSongsResponse |
GetSongsByArtist(SearchArtist.SearchArtistResult song)
Searches for songs by the same artist of the song. |
AlbumGetSongs.AlbumGetSongsResponse |
GetSongsFromAlbum(SearchArtist.SearchArtistResult song)
Searches for songs in the same album of the song. |
boolean |
isConnected()
|
AuthenticateUserEx.AuthenticateUserExResponse |
Login(java.lang.String user,
java.lang.String pass)
Logins into the grooveshark(tm) service. |
LogoutUser.LogoutUserResponse |
Logout()
Logs out |
PopularSongs.popularGetSongsResultsResponse |
PopularSongs()
Searches for popular Songs |
void |
Reconnect()
Reconnects the api |
void |
reloadGrooveFix()
|
SearchArtist.getSearchArtistResultsResponse |
SearchArtist(java.lang.String Search)
Searches for Songs |
java.lang.String |
SecretKey()
|
java.lang.String |
SessionID()
|
java.lang.String |
UserId()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean UseGZip
public GrooveFix HtmlShark
public GrooveFix JSQueue
Constructor Detail |
---|
public GroovesharkClient(boolean ConnectJustInTime) throws java.lang.Exception
ConnectJustInTime
- Should the api connect now or then when needed?
java.lang.Exception
public GroovesharkClient(boolean ConnectJustInTime, java.lang.String GrooveFixData) throws java.lang.Exception
ConnectJustInTime
- Should the api connect now or then when needed?GrooveFixData
- The XML String to parse that contains the GrooveFixData
java.lang.Exception
Method Detail |
---|
public void reloadGrooveFix() throws java.lang.Exception
java.lang.Exception
public void CheckConnect() throws java.lang.Exception
java.lang.Exception
public GroovesharkAudioStream GetMusicStream(int SongId) throws java.lang.Exception
SongId
-
java.lang.Exception
public PopularSongs.popularGetSongsResultsResponse PopularSongs() throws java.lang.Exception
java.lang.Exception
public void Reconnect() throws java.lang.Exception
java.lang.Exception
public SearchArtist.getSearchArtistResultsResponse SearchArtist(java.lang.String Search) throws java.lang.Exception
Search
- A string to search for
java.lang.Exception
public AlbumGetSongs.AlbumGetSongsResponse GetSongsFromAlbum(SearchArtist.SearchArtistResult song) throws java.lang.Exception
song
- Song
java.lang.Exception
public ArtistGetSongs.ArtistGetSongsResponse GetSongsByArtist(SearchArtist.SearchArtistResult song) throws java.lang.Exception
song
- Song
java.lang.Exception
public AuthenticateUserEx.AuthenticateUserExResponse Login(java.lang.String user, java.lang.String pass) throws java.lang.Exception
user
- Usernamepass
- Password
java.lang.Exception
public LogoutUser.LogoutUserResponse Logout() throws java.lang.Exception
java.lang.Exception
public GetArtistAutocomplete.GetArtistAutocompleteResponse GetArtistAutocomplete(java.lang.String search) throws java.lang.Exception
search
- beginning of an artist name
java.lang.Exception
public UserGetPlaylists.UserGetPlaylistsResponse GetPlaylists(int userId) throws java.lang.Exception
userId
- The userid of the user. Can be fetched over the login
java.lang.Exception
public PlaylistGetSongs.PlaylistGetSongsResponse GetPlaylistSongs(int playlistId) throws java.lang.Exception
playlistId
- playlists id
java.lang.Exception
public java.lang.String CommunicationToken()
public GroovesharkCountry Country()
public java.lang.String Cowbell()
public boolean isConnected()
public java.lang.String SecretKey()
public java.lang.String SessionID()
public java.lang.String UserId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |