Class GenreIdsResponse
- java.lang.Object
-
- be.ceau.itunesapi.response.genreidsappendix.GenreIdsResponse
-
- All Implemented Interfaces:
Serializable
public class GenreIdsResponse extends Object implements Serializable
iTunes Genre ID response- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenreIdsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Integer,Genre>getGenres()static GenreIdsResponseparse(String json)Static factory for parsing a valid JSON response to a newGenreIdsResponseinstanceStringtoString()
-
-
-
Method Detail
-
parse
public static GenreIdsResponse parse(String json) throws IOException
Static factory for parsing a valid JSON response to a newGenreIdsResponseinstance- Parameters:
json- the JSON response received from Apple's Genre IDs Appendix API- Returns:
- a
GenreIdsAppendixinstance - Throws:
IllegalArgumentException- if argument nullIOException- on exception with parsing JSON
-
getGenres
public Map<Integer,Genre> getGenres()
- Returns:
- modifiable
Mapcontaining the parsed genres in this response
-
-