private Track getTrackResponse ( String methodName , Map < String , Object > params ) throws MusixMatchException { Track track = new Track ( ) ; String response = null ; TrackGetMessage message = null ; response = MusixMatchRequest . sendRequest ( Helper . getURLString ( methodName , params ) ) ; Gson gson = new Gson ( ) ; try { message = gson . fromJson ( response , TrackGetMessage . class ) ; } catch ( JsonParseException jpe ) { handleErrorResponse ( response ) ; } TrackData data = message . getTrackMessage ( ) . getBody ( ) . getTrack ( ) ; track . setTrack ( data ) ; return track ; }
Returns the track response which was returned through the query .