|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.scilor.grooveshark.API.Base.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 |
java.util.ArrayList<GetTopLevelTags.TagInfo> |
GetRadioGenres()
Loads a list of all available genres(tags). |
GetPageInfoByIDType.PageInfo |
GetRadioInfo(int tagID)
Presents all available Information about the genre. |
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. |
GetStreamKeyFromSongIDEx.GetStreamKeyFromSongIDExResponse |
GetStreamKey(int SongId)
Gets the StreamKey, the Server etc. from Grooveshark(tm). |
boolean |
isConnected()
|
boolean |
isLowBitrate()
Gets the status of the lowBitrate flag. |
AuthenticateUserEx.AuthenticateUserExResponse |
Login(java.lang.String user,
java.lang.String pass)
Logins into the grooveshark(tm) service. |
LogoutUser.LogoutUserResponse |
Logout()
Logs out |
boolean |
MarkSongAsDownloaded(int SongId,
java.lang.String streamKey,
java.lang.String ip)
Must be called if a song is completly downloaded. |
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()
|
void |
setLowBitrate(boolean lowBitrate)
Changes the state of the lowBitrate flag If you activate it you will see that the songs are requested with a lower bitrate (ex. 64kbps) |
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 GetStreamKeyFromSongIDEx.GetStreamKeyFromSongIDExResponse GetStreamKey(int SongId) throws java.lang.Exception
SongId
-
java.lang.Exception
public boolean MarkSongAsDownloaded(int SongId, java.lang.String streamKey, java.lang.String ip) throws java.lang.Exception
SongId
- streamKey
- ip
-
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 java.util.ArrayList<GetTopLevelTags.TagInfo> GetRadioGenres() throws java.lang.Exception
java.lang.Exception
public GetPageInfoByIDType.PageInfo GetRadioInfo(int tagID) throws java.lang.Exception
tagID
- Tag ID of the Genre
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()
public boolean isLowBitrate()
public void setLowBitrate(boolean lowBitrate)
lowBitrate
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |