public class JsonUtil extends Object
| Constructor and Description |
|---|
JsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Album |
createAlbum(String json) |
static Page<Album> |
createAlbumPage(net.sf.json.JSONObject albumPageJson) |
static List<Album> |
createAlbums(net.sf.json.JSONArray jsonArray) |
static List<Album> |
createAlbums(String json) |
static AlbumType |
createAlbumType(String albumType) |
static ClientCredentials |
createApplicationAuthenticationToken(net.sf.json.JSONObject jsonObject) |
static Artist |
createArtist(net.sf.json.JSONObject jsonObject) |
static Artist |
createArtist(String json) |
static Page<Artist> |
createArtistPage(net.sf.json.JSONObject artistPageJson) |
static List<Artist> |
createArtists(net.sf.json.JSONObject jsonObject) |
static List<Artist> |
createArtists(String json) |
static List<String> |
createAvailableMarkets(net.sf.json.JSONArray availableMarketsJson) |
static List<Boolean> |
createBooleans(String response) |
static List<Copyright> |
createCopyrights(net.sf.json.JSONArray copyrightsJson)
Create a list of Copyright object.
|
static ExternalIds |
createExternalIds(net.sf.json.JSONObject externalIds) |
static ExternalUrls |
createExternalUrls(net.sf.json.JSONObject externalUrls) |
static FeaturedPlaylists |
createFeaturedPlaylist(net.sf.json.JSONObject jsonObject)
Create a Featured Playlist object
|
static List<String> |
createGenres(net.sf.json.JSONArray genres) |
static List<Image> |
createImages(net.sf.json.JSONArray images) |
static Page<LibraryTrack> |
createLibraryTracksPage(net.sf.json.JSONObject jsonObject) |
static NewReleases |
createNewReleases(net.sf.json.JSONObject newReleasesJson) |
static Playlist |
createPlaylist(net.sf.json.JSONObject jsonObject) |
static Page<Playlist> |
createPlaylistPage(net.sf.json.JSONObject jsonObject) |
static Page<PlaylistTrack> |
createPlaylistTrackPage(net.sf.json.JSONObject playlistTrackPageJson) |
static RefreshAccessTokenCredentials |
createRefreshAccessTokenResponse(net.sf.json.JSONObject jsonObject) |
static SimpleAlbum |
createSimpleAlbum(net.sf.json.JSONObject simpleAlbumJson) |
static Page<SimpleAlbum> |
createSimpleAlbumPage(net.sf.json.JSONObject simpleAlbumPageJson) |
static Page<SimpleAlbum> |
createSimpleAlbumPage(String simpleAlbumPageJson) |
static List<SimpleAlbum> |
createSimpleAlbums(net.sf.json.JSONArray jsonArray) |
static SimpleArtist |
createSimpleArtist(net.sf.json.JSONObject simpleArtistJson) |
static SimplePlaylist |
createSimplePlaylist(net.sf.json.JSONObject playlistJson) |
static List<SimplePlaylist> |
createSimplePlaylists(net.sf.json.JSONArray playlistsJson) |
static Page<SimplePlaylist> |
createSimplePlaylistsPage(net.sf.json.JSONObject jsonObject) |
static SimpleTrack |
createSimpleTrack(net.sf.json.JSONObject simpleTrackJson) |
static List<SimpleTrack> |
createSimpleTracks(net.sf.json.JSONArray tracksJson) |
static SnapshotResult |
createSnapshotResponse(String jsonString) |
static SpotifyEntityType |
createSpotifyEntityType(String type) |
static AuthorizationCodeCredentials |
createTokenResponse(net.sf.json.JSONObject tokenResponse) |
static Track |
createTrack(String trackJson) |
static Page<Track> |
createTrackPage(net.sf.json.JSONObject trackPageJson) |
static List<Track> |
createTracks(net.sf.json.JSONObject jsonObject) |
static List<Track> |
createTracks(String json) |
static User |
createUser(net.sf.json.JSONObject userJson) |
static User |
createUser(String userJson) |
public static Artist createArtist(net.sf.json.JSONObject jsonObject)
public static SpotifyEntityType createSpotifyEntityType(String type)
public static ExternalUrls createExternalUrls(net.sf.json.JSONObject externalUrls)
public static List<SimpleTrack> createSimpleTracks(net.sf.json.JSONArray tracksJson)
public static SimpleTrack createSimpleTrack(net.sf.json.JSONObject simpleTrackJson)
public static List<String> createAvailableMarkets(net.sf.json.JSONArray availableMarketsJson)
public static List<Copyright> createCopyrights(net.sf.json.JSONArray copyrightsJson)
copyrightsJson - A JSON array containing copyright information retrieved from the Web API.public static SimpleAlbum createSimpleAlbum(net.sf.json.JSONObject simpleAlbumJson)
public static List<SimpleAlbum> createSimpleAlbums(net.sf.json.JSONArray jsonArray)
public static SimpleArtist createSimpleArtist(net.sf.json.JSONObject simpleArtistJson)
public static ExternalIds createExternalIds(net.sf.json.JSONObject externalIds)
public static Page<SimpleAlbum> createSimpleAlbumPage(String simpleAlbumPageJson)
public static Page<SimpleAlbum> createSimpleAlbumPage(net.sf.json.JSONObject simpleAlbumPageJson)
public static User createUser(net.sf.json.JSONObject userJson)
public static AuthorizationCodeCredentials createTokenResponse(net.sf.json.JSONObject tokenResponse)
public static ClientCredentials createApplicationAuthenticationToken(net.sf.json.JSONObject jsonObject)
public static RefreshAccessTokenCredentials createRefreshAccessTokenResponse(net.sf.json.JSONObject jsonObject)
public static Page<SimplePlaylist> createSimplePlaylistsPage(net.sf.json.JSONObject jsonObject)
public static List<SimplePlaylist> createSimplePlaylists(net.sf.json.JSONArray playlistsJson)
public static SimplePlaylist createSimplePlaylist(net.sf.json.JSONObject playlistJson)
public static Page<Playlist> createPlaylistPage(net.sf.json.JSONObject jsonObject)
public static Playlist createPlaylist(net.sf.json.JSONObject jsonObject)
public static Page<PlaylistTrack> createPlaylistTrackPage(net.sf.json.JSONObject playlistTrackPageJson)
public static Page<LibraryTrack> createLibraryTracksPage(net.sf.json.JSONObject jsonObject)
public static NewReleases createNewReleases(net.sf.json.JSONObject newReleasesJson)
public static FeaturedPlaylists createFeaturedPlaylist(net.sf.json.JSONObject jsonObject)
jsonObject - The JSON object containing the featured playlists.public static SnapshotResult createSnapshotResponse(String jsonString)
Copyright © 2015. All rights reserved.