Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NowPlaying
- {
- private static RadioContent radioContent = new RadioContent();
- public static void fetchContent( String url )
- {
- radioContent.setURL( url );
- radioContent.loadContent();
- radioContent.convertToJson();
- }
- public static void print( String find )
- {
- Object value = radioContent.getValue( find );
- System.out.println( value );
- }
- public static void main( String[] args )
- {
- NowPlaying.fetchContent( "http://api.soundrop.fm/spaces/XJTt3mXTOZpvgmOc" );
- NowPlaying.print( "title" );
- NowPlaying.print( "display_name" );
- NowPlaying.print( "length" );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement