Back to project page pequeno-android-spotify.
The source code is released under:
Apache License
If you think the Android project pequeno-android-spotify listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright 2015 ze-pequeno/* w w w . j av a2s . c o m*/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.pequeno.android.spotify.api.http.responses; import com.fasterxml.jackson.annotation.JsonProperty; import com.pequeno.android.spotify.api.business.AlbumSimplified; import com.pequeno.android.spotify.api.business.Artist; import com.pequeno.android.spotify.api.business.Paging; import com.pequeno.android.spotify.api.business.PlaylistSimplified; import com.pequeno.android.spotify.api.business.Track; public class SearchResponse { @JsonProperty("artists") private Paging<Artist> artists; @JsonProperty("albums") private Paging<AlbumSimplified> albums; @JsonProperty("playlists") private Paging<PlaylistSimplified> playlists; @JsonProperty("tracks") private Paging<Track> tracks; public Paging<Artist> getArtists() { return artists; } public boolean hasArtists() { return artists != null; } public Paging<AlbumSimplified> getAlbums() { return albums; } public boolean hasAlbums() { return albums != null; } public Paging<PlaylistSimplified> getPlaylists() { return playlists; } public boolean hasPlayists() { return playlists != null; } public Paging<Track> getTracks() { return tracks; } public boolean hasTracks() { return tracks != null; } }