Ready to integrate saavn api for musc downloading and listeniing
- Declare the fetch oject, attach the JsaListener
class Sample implements JsaListener {
// this refers to the instance of the JsaListener
JsaFetch fetch = new JsaFetch(this);
}
- Call methods to fetch data based on query
String myQuery = "something good";
// for songs
fetch.songs(myQuery);
//for albums
fetch.albums(myQuery);
- Implements the methods of the JsaListener
@Override
public void setSongs(List<Music> musics) {
// data from fetch
}
@Override
public void setAlbums(List<Album> albums) {
// data from fetch
}
- Music and Album Objects
// both objects have properties as public so not getters or setters