public class GenreIdsResponse extends Object implements Serializable
Constructor and Description |
---|
GenreIdsResponse() |
Modifier and Type | Method and Description |
---|---|
Map<Integer,Genre> |
getGenres() |
static GenreIdsResponse |
parse(String json)
Static factory for parsing a valid JSON response to a new
GenreIdsResponse instance |
String |
toString() |
public static GenreIdsResponse parse(String json) throws IOException
GenreIdsResponse
instancejson
- the JSON response received from Apple's Genre IDs Appendix APIGenreIdsAppendix
instanceIllegalArgumentException
- if argument nullIOException
- on exception with parsing JSONpublic Map<Integer,Genre> getGenres()
Map
containing the parsed genres in this responseCopyright © 2018. All rights reserved.